diff --git a/pyglance/glance/compare.py b/pyglance/glance/compare.py index b1ab3dca6a5e47525a819354f697faaea8ed65e5..e3a16a9415d5cf25f70623b9f6d18685197e3b26 100644 --- a/pyglance/glance/compare.py +++ b/pyglance/glance/compare.py @@ -1478,9 +1478,10 @@ glance inspectStats A.hdf # if what the user asked for is not one of our existing functions, print the help if ((not args) or (args[0].lower() not in lower_locals)): - if not options.version : - parser.print_help() - help() + if options.version: + return 0; + parser.print_help() + help() return 9 else: # call the function the user named, given the arguments from the command line, lowercase the request to ignore case