From 6cb43c600f0b5d694201233ade6abd4f989d1730 Mon Sep 17 00:00:00 2001 From: kotfu Date: Sun, 7 Jan 2018 20:02:38 -0700 Subject: Set prog in argparser based on the name of the function --- examples/argparse_example.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/argparse_example.py') diff --git a/examples/argparse_example.py b/examples/argparse_example.py index c6a17435..a387acc3 100755 --- a/examples/argparse_example.py +++ b/examples/argparse_example.py @@ -67,10 +67,7 @@ class CmdLineApp(Cmd): do_orate = do_speak # another synonym, but this one takes multi-line input - argparser = argparse.ArgumentParser( - prog='tag', - description='create a html tag', - ) + argparser = argparse.ArgumentParser(description='create a html tag') argparser.add_argument('tag', nargs=1, help='tag') argparser.add_argument('content', nargs='+', help='content to surround with tag') @with_argument_parser(argparser) -- cgit v1.2.1