summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core/dispatcher.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2016-07-01 18:28:49 +0200
committerRuben Pollan <meskio@sindominio.net>2016-07-03 16:04:41 +0200
commit5b1c15150e0c6499cffb8171eae28fc2ce01fd27 (patch)
treeb8b640ecd72e204e444b91840b590d130465a0e1 /src/leap/bitmask/core/dispatcher.py
parent24203c3752feecb9c0be74b93bb1832ccb34d3a3 (diff)
[feat] use subcommands in the cli
Reorganize all the commands to don't use '--' but parse each subcommand separately.
Diffstat (limited to 'src/leap/bitmask/core/dispatcher.py')
-rw-r--r--src/leap/bitmask/core/dispatcher.py4
1 files changed, 2 insertions, 2 deletions
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')