Permalink
Browse files

fixing how return codes are handled

  • Loading branch information...
1 parent c715263 commit bb9143e290b89d509a878ebfcf0f5542e2a3dab5 Eva Schiffer committed Aug 12, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 pyglance/glance/compare.py
@@ -1468,10 +1468,10 @@ def help(command=None):
return 9
else:
# call the function the user named, given the arguments from the command line
- locals()[args[0]](*args[1:])
-
- return 0
-
+ rc = locals()[args[0]](*args[1:])
+ return 0 if rc is None else rc
+
+ return 0 # it shouldn't be possible to get here any longer
if __name__=='__main__':
sys.exit(main())

0 comments on commit bb9143e

Please sign in to comment.