@@ -34,12 +34,12 @@ def __init__(self):
34
34
35
35
def do_aprint (self , arg ):
36
36
"""Print the argument string this basic command is called with."""
37
- print ('aprint was called with argument: {!r}' .format (arg ))
37
+ self . poutput ('aprint was called with argument: {!r}' .format (arg ))
38
38
39
39
@with_argument_list
40
40
def do_lprint (self , arglist ):
41
41
"""Print the argument list this basic command is called with."""
42
- print ('lprint was called with the following list of arguments: {!r}' .format (arglist ))
42
+ self . poutput ('lprint was called with the following list of arguments: {!r}' .format (arglist ))
43
43
44
44
oprint_parser = argparse .ArgumentParser ()
45
45
oprint_parser .add_argument ('-p' , '--piglatin' , action = 'store_true' , help = 'atinLay' )
@@ -50,7 +50,7 @@ def do_lprint(self, arglist):
50
50
@with_argparser (oprint_parser )
51
51
def do_oprint (self , args ):
52
52
"""Print the options and argument list this options command was called with."""
53
- print ('oprint was called with the following\n \t options: {!r}' .format (args ))
53
+ self . poutput ('oprint was called with the following\n \t options: {!r}' .format (args ))
54
54
55
55
pprint_parser = argparse .ArgumentParser ()
56
56
pprint_parser .add_argument ('-p' , '--piglatin' , action = 'store_true' , help = 'atinLay' )
@@ -59,7 +59,7 @@ def do_oprint(self, args):
59
59
@with_argparser_and_unknown_args (pprint_parser )
60
60
def do_pprint (self , args , unknown ):
61
61
"""Print the options and argument list this options command was called with."""
62
- print ('oprint was called with the following\n \t options: {!r}\n \t arguments: {}' .format (args , unknown ))
62
+ self . poutput ('oprint was called with the following\n \t options: {!r}\n \t arguments: {}' .format (args , unknown ))
63
63
64
64
65
65
0 commit comments