summaryrefslogtreecommitdiff
path: root/examples/argparse_example.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/argparse_example.py')
-rwxr-xr-xexamples/argparse_example.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/argparse_example.py b/examples/argparse_example.py
index b203feef..ae45411c 100755
--- a/examples/argparse_example.py
+++ b/examples/argparse_example.py
@@ -48,7 +48,7 @@ class CmdLineApp(Cmd):
speak_parser.add_argument('words', nargs='+', help='words to say')
@with_argument_parser(speak_parser)
- def do_speak(self, arglist, args=None):
+ def do_speak(self, args):
"""Repeats what you tell me to."""
words = []
for word in args.words:
@@ -69,7 +69,7 @@ class CmdLineApp(Cmd):
tag_parser.add_argument('content', nargs='+', help='content to surround with tag')
@with_argument_parser(tag_parser)
- def do_tag(self, arglist, args=None):
+ def do_tag(self, args):
"""create a html tag"""
self.poutput('<{0}>{1}</{0}>'.format(args.tag[0], ' '.join(args.content)))