sfi exit code non-0 if unknown command
[sfa.git] / 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):