From 0435627bc5e80413fbea23fa9aac3defa24c4151 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 30 Apr 2014 11:11:00 +0200 Subject: [PATCH] sfi exit code non-0 if unknown command --- sfa/client/sfi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 4f38ddf2..171768f0 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -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): -- 2.43.0