Use regular __doc__ instead of own DOCSTRING variable.

So that help(operatornotify) works as expected.
This commit is contained in:
voussoir 2021-05-03 18:24:37 -07:00
parent d03c653b46
commit 7bfe0a48ef
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -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:]))