summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/cli/mail.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-07-06 14:24:30 +0200
committerKali Kaneko <kali@leap.se>2016-07-06 19:05:47 +0200
commit2a39fcaf8cf6d20c2cfac46ddba661ddc9699f39 (patch)
tree6a50af2254f751a9061652458a57302925cfd176 /src/leap/bitmask/cli/mail.py
parent44bfc93d60c0060f6153609c86f5deebfd084d2e (diff)
[refactor] beautify cli output
Diffstat (limited to 'src/leap/bitmask/cli/mail.py')
-rw-r--r--src/leap/bitmask/cli/mail.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/leap/bitmask/cli/mail.py b/src/leap/bitmask/cli/mail.py
index a02797cc..76fdc3b9 100644
--- a/src/leap/bitmask/cli/mail.py
+++ b/src/leap/bitmask/cli/mail.py
@@ -17,16 +17,14 @@
"""
Bitmask Command Line interface: mail
"""
-import sys
-
-from leap.bitmask.cli.command import Command
+from leap.bitmask.cli.command import appname, Command
class Mail(Command):
service = 'mail'
- usage = '''%s mail <subcommand>
+ usage = '''{name} mail <subcommand>
-Bitmask encrypted internet service
+Bitmask Encrypted Email service
SUBCOMMANDS:
@@ -36,7 +34,7 @@ SUBCOMMANDS:
get-token Returns token for the mail service
get-smtp-certificate Downloads a new smtp certificate
-''' % sys.argv[0]
+'''.format(name=appname)
commands = ['enable', 'disable', 'status', 'get-token',
'get-smtp-certificate']