From a9fff73f55d62ec523cdd5b7202300095b3255e8 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 3 Jun 2015 11:50:43 +0200 Subject: [PATCH] support for e.g. sfi discover help --- sfa/client/sfi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 494a7387..2a3e21f0 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -556,6 +556,10 @@ use this if you mean an authority instead""") if not method: print "sfi: unknown command {}".format(command) raise SystemExit("Unknown command {}".format(command)) + for arg in command_args: + if 'help' in arg or arg == '-h': + self.print_help() + sys.exit(1) return method(command_options, command_args) def main(self): -- 2.43.0