From 5b1c15150e0c6499cffb8171eae28fc2ce01fd27 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Fri, 1 Jul 2016 18:28:49 +0200 Subject: [feat] use subcommands in the cli Reorganize all the commands to don't use '--' but parse each subcommand separately. --- src/leap/bitmask/core/dispatcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/leap/bitmask/core/dispatcher.py') diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py index 9e2b96de..f57790e2 100644 --- a/src/leap/bitmask/core/dispatcher.py +++ b/src/leap/bitmask/core/dispatcher.py @@ -180,7 +180,7 @@ class KeysCmd(SubCommand): return d @register_method('dict') - def do_ADD(self, service, *parts, **kw): + def do_INSERT(self, service, *parts, **kw): if len(parts) < 5: return defer.fail("An email address is needed") address = parts[2] @@ -189,7 +189,7 @@ class KeysCmd(SubCommand): bonafide = kw['bonafide'] d = bonafide.do_get_active_user() - d.addCallback(service.do_add, address, rawkey, validation) + d.addCallback(service.do_insert, address, rawkey, validation) return d @register_method('str') -- cgit v1.2.3