Use regular __doc__ instead of own DOCSTRING variable.
So that help(operatornotify) works as expected.
This commit is contained in:
parent
d03c653b46
commit
7bfe0a48ef
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
DOCSTRING = '''
|
'''
|
||||||
operatornotify
|
operatornotify
|
||||||
==============
|
==============
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ def main(argv):
|
||||||
parser.add_argument('--body', default='')
|
parser.add_argument('--body', default='')
|
||||||
parser.set_defaults(func=operatornotify_argparse)
|
parser.set_defaults(func=operatornotify_argparse)
|
||||||
|
|
||||||
return betterhelp.single_main(argv, parser, DOCSTRING)
|
return betterhelp.single_main(argv, parser, __doc__)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
raise SystemExit(main(sys.argv[1:]))
|
raise SystemExit(main(sys.argv[1:]))
|
||||||
|
|
Loading…
Reference in a new issue