battleman: fixed 'print' command on a group, cleaned up and added some output
This commit is contained in:
@ -122,9 +122,9 @@ class CommandParser(Cmd):
|
||||
if num_cmds == 1:
|
||||
return getattr(self, 'do_'+cmds[0])(data)
|
||||
elif num_cmds > 1:
|
||||
sys.stdout.write('Error: Ambiguous command: {}'.format(comm))
|
||||
print 'Error: Ambiguous command: {}'.format(comm)
|
||||
else:
|
||||
print 'Error: Unrecognized command {}'.format(comm)
|
||||
print 'Error: Unrecognized command: {}'.format(comm)
|
||||
|
||||
|
||||
# We are overriding do_help to avoid printing info about
|
||||
|
Reference in New Issue
Block a user