From e865f120012c087b386d69bd47f82a5222c4677e Mon Sep 17 00:00:00 2001 From: Michael Still Date: Tue, 18 Dec 2012 07:11:36 +1100 Subject: Fix stack trace on incorrect nova-manage args. This error reporting needs more work, but this at least stops us from presenting a stack trace to the user and is as broken as before. Resolves bug 1091403. Change-Id: I941983b60cc3762a916d57b7ea67264e093cfa44 --- bin/nova-manage | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/nova-manage b/bin/nova-manage index c761ff6cc..4a4b2fda8 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -1131,8 +1131,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: -- cgit