]> Savannah Git Hosting - gnulib.git/commitdiff
make command-line usage() and help() properties
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 10 Sep 2017 20:39:37 +0000 (23:39 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 10 Sep 2017 20:39:37 +0000 (23:39 +0300)
pygnulib/config.py

index 75dc9d51fd1ce0094d9ebf910fd26585c1dddf62..d2bb48f1c7fd2338149925ce38f85cde8f81a31f 100644 (file)
@@ -1410,11 +1410,13 @@ class CommandLine(Base):
         return bool(self.__link & CommandLine._LINK_NOTICE_)
 
 
+    @property
     def usage(self):
         """usage message"""
         return self.__format_usage()[:-1]
 
 
+    @property
     def help(self):
         """help message"""
         return self.__format_help()