moves the "help" in the usage information of a wrong command to the correct position
fixes bug 922047 Change-Id: I9fdd76bd995a9bc4c469a8bcb47fe0e7f8a3d261
This commit is contained in:
parent
36be4bf575
commit
0847282fd8
|
@ -60,8 +60,9 @@ class NovaClientArgumentParser(argparse.ArgumentParser):
|
||||||
self.print_usage(sys.stderr)
|
self.print_usage(sys.stderr)
|
||||||
#FIXME(lzyeval): if changes occur in argparse.ArgParser._check_value
|
#FIXME(lzyeval): if changes occur in argparse.ArgParser._check_value
|
||||||
choose_from = ' (choose from'
|
choose_from = ' (choose from'
|
||||||
self.exit(2, "error: %s\nTry `%s help' for more information.\n" %
|
self.exit(2, "error: %s\nTry `%s' for more information.\n" %
|
||||||
(message.split(choose_from)[0], self.prog))
|
(message.split(choose_from)[0],
|
||||||
|
self.prog.replace(" ", " help ", 1)))
|
||||||
|
|
||||||
|
|
||||||
class OpenStackComputeShell(object):
|
class OpenStackComputeShell(object):
|
||||||
|
|
Loading…
Reference in New Issue