Skip to content

Commit 5a28a87

Browse files
committed
Clean up variable names
1 parent 6cb43c6 commit 5a28a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/argparse_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, ip_addr=None, port=None, transcript_files=None):
4747
argparser.add_argument('-r', '--repeat', type=int, help='output [n] times')
4848
argparser.add_argument('words', nargs='+', help='words to say')
4949
@with_argument_parser(argparser)
50-
def do_speak(self, rawarg, args=None):
50+
def do_speak(self, argv, args=None):
5151
"""Repeats what you tell me to."""
5252
words = []
5353
for word in args.words:
@@ -71,7 +71,7 @@ def do_speak(self, rawarg, args=None):
7171
argparser.add_argument('tag', nargs=1, help='tag')
7272
argparser.add_argument('content', nargs='+', help='content to surround with tag')
7373
@with_argument_parser(argparser)
74-
def do_tag(self, cmdline, args=None):
74+
def do_tag(self, argv, args=None):
7575
self.stdout.write('<{0}>{1}</{0}>'.format(args.tag[0], ' '.join(args.content)))
7676
self.stdout.write('\n')
7777
# self.stdout.write is better than "print", because Cmd can be

0 commit comments

Comments
 (0)