@@ -132,6 +132,7 @@ Instructions for implementing each feature follow.
132
132
argparser.add_argument(' -p' , ' --piglatin' , action = ' store_true' , help = ' atinLay' )
133
133
argparser.add_argument(' -s' , ' --shout' , action = ' store_true' , help = ' N00B EMULATION MODE' )
134
134
argparser.add_argument(' words' , nargs = ' +' , help = ' words to say' )
135
+
135
136
@ with_argparser(argparser)
136
137
def do_speak(self , args):
137
138
""" Repeats what you tell me to."""
@@ -253,6 +254,7 @@ class CmdLineApp(cmd2.Cmd):
253
254
speak_parser.add_argument(' -s' , ' --shout' , action = ' store_true' , help = ' N00B EMULATION MODE' )
254
255
speak_parser.add_argument(' -r' , ' --repeat' , type = int , help = ' output [n] times' )
255
256
speak_parser.add_argument(' words' , nargs = ' +' , help = ' words to say' )
257
+
256
258
@ cmd2.with_argparser(speak_parser)
257
259
def do_speak(self , args):
258
260
""" Repeats what you tell me to."""
@@ -274,6 +276,7 @@ class CmdLineApp(cmd2.Cmd):
274
276
mumble_parser = argparse.ArgumentParser()
275
277
mumble_parser.add_argument(' -r' , ' --repeat' , type = int , help = ' how many times to repeat' )
276
278
mumble_parser.add_argument(' words' , nargs = ' +' , help = ' words to say' )
279
+
277
280
@ cmd2.with_argparser(mumble_parser)
278
281
def do_mumble(self , args):
279
282
""" Mumbles what you tell me to."""
0 commit comments