Show entire command in error message
Currently only the first argument is shown in the error message. In case of a multiword command, only first part is shown. e.g When "openstack security grou list" command is run, "security" subcommand is shown as invalid. This conveys a wrong message to the user. Closes-Bug: 1640031 Change-Id: I748ce46835638916279edead894e3f32c12abd51
This commit is contained in:
parent
2a3a8c081f
commit
6205b24fc8
|
@ -371,7 +371,7 @@ class App(object):
|
|||
article = 'an'
|
||||
self.stdout.write('%s: \'%s\' is not %s %s command. '
|
||||
'See \'%s --help\'.\n'
|
||||
% (self.NAME, the_cmd, article,
|
||||
% (self.NAME, ' '.join(argv), article,
|
||||
self.NAME, self.NAME))
|
||||
self.stdout.write('Did you mean one of these?\n')
|
||||
for match in fuzzy_matches:
|
||||
|
|
Loading…
Reference in New Issue