diff --git a/pyglance/glance/compare.py b/pyglance/glance/compare.py
index 4f93e831769a42079eb6ed4a54bc0df20bcec93a..211e27ad632a529473b70017377bd8dd18c880f0 100644
--- a/pyglance/glance/compare.py
+++ b/pyglance/glance/compare.py
@@ -1485,9 +1485,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