From: Thierry Parmentelat Date: Wed, 30 Apr 2014 09:11:00 +0000 (+0200) Subject: sfi exit code non-0 if unknown command X-Git-Tag: sfa-3.1-4~16 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=0435627bc5e80413fbea23fa9aac3defa24c4151 sfi exit code non-0 if unknown command --- 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):