changeset 38943:f8222374fb4d

make command-line usage() and help() properties
author Dmitry Selyutin <ghostmansd@gmail.com>
date Sun, 10 Sep 2017 23:39:37 +0300
parents c27a46d672f3
children f03ce549932f
files pygnulib/config.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pygnulib/config.py	Sat Sep 09 23:41:42 2017 +0300
+++ b/pygnulib/config.py	Sun Sep 10 23:39:37 2017 +0300
@@ -1410,11 +1410,13 @@
         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()