fix sfi aliases - sfi add would not work
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 30 Apr 2014 09:12:11 +0000 (11:12 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 30 Apr 2014 09:12:11 +0000 (11:12 +0200)
sfa/client/sfi.py

index 171768f..3a61bff 100644 (file)
@@ -524,7 +524,8 @@ use this if you mean an authority instead""")
     # Main: parse arguments and dispatch to command
     #
     def dispatch(self, command, command_options, command_args):
-        method=getattr(self, command, None)
+        (doc, args_string, example, canonical) = commands_dict[command]
+        method=getattr(self, canonical, None)
         if not method:
             print "sfi: unknown command %s"%command
             raise SystemExit,"Unknown command %s"%command