summaryrefslogtreecommitdiff
path: root/bin/nova-manage
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-12-29 00:39:53 +0000
committerGerrit Code Review <review@openstack.org>2012-12-29 00:39:53 +0000
commit4f4ef9f556a29dffcea40a2aa4b7e2e0146b898e (patch)
tree7b9b0ab25f6ea5bbcf9c3bd2f7c8779d982f88dc /bin/nova-manage
parentad1165788a79fce37d977e0e663989e19403a884 (diff)
parente865f120012c087b386d69bd47f82a5222c4677e (diff)
downloadnova-4f4ef9f556a29dffcea40a2aa4b7e2e0146b898e.tar.gz
Merge "Fix stack trace on incorrect nova-manage args."
Diffstat (limited to 'bin/nova-manage')
-rwxr-xr-xbin/nova-manage5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index 2ff96f50d8..5d7e8d6786 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -1129,8 +1129,11 @@ def main():
try:
cliutils.validate_args(fn, *fn_args, **fn_kwargs)
except cliutils.MissingArgs as e:
+ # NOTE(mikal): this isn't the most helpful error message ever. It is
+ # long, and tells you a lot of things you probably don't want to know
+ # if you just got a single arg wrong.
print fn.__doc__
- parser.print_help()
+ CONF.print_help()
print e
sys.exit(1)
try: