sfi exit code non-0 if unknown command
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 30 Apr 2014 09:11:00 +0000 (11:11 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 30 Apr 2014 09:11:00 +0000 (11:11 +0200)
sfa/client/sfi.py

index 4f38ddf..171768f 100644 (file)
@@ -526,8 +526,8 @@ use this if you mean an authority instead""")
     def dispatch(self, command, command_options, command_args):
         method=getattr(self, command, None)
         if not method:
-            print "Unknown command %s"%command
-            return
+            print "sfi: unknown command %s"%command
+            raise SystemExit,"Unknown command %s"%command
         return method(command_options, command_args)
 
     def main(self):