diff --git a/SublimeSnippets/helptext.sublime-snippet b/SublimeSnippets/helptext.sublime-snippet new file mode 100644 index 0000000..afb3027 --- /dev/null +++ b/SublimeSnippets/helptext.sublime-snippet @@ -0,0 +1,39 @@ + + ____my__program____.py --help +'''.lstrip() + +SUB_DOCSTRINGS = dict( +____my__command____=''' +____my__command____: + ____my__command____description + + > ____my__program____.py ____my__command____ + + flags: + --____my__flag____: +'''.strip(), +) + +DOCSTRING = betterhelp.add_previews(DOCSTRING, SUB_DOCSTRINGS) + +@betterhelp.subparser_betterhelp(parser, main_docstring=DOCSTRING, sub_docstrings=SUB_DOCSTRINGS) +def main(argv): + args = parser.parse_args(argv) + args.func(args) + +]]> +helptext + + + + +