Skip to content

Commit 2c26977

Browse files
committed
Keep one argument per line when splitting across lines
1 parent 64afeaf commit 2c26977

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

totp/cli.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,14 @@ def run():
5959
except KeyboardInterrupt:
6060
print()
6161

62-
@subcommand('add',
63-
argument('identifier',
62+
@subcommand(
63+
'add',
64+
argument(
65+
'identifier',
6466
help='the identifier under the \'2fa\' folder where the key should be saved'),
65-
argument('-u', '--uri',
67+
argument(
68+
'-u',
69+
'--uri',
6670
help='an optional otpauth uri to read the entry data from'),
6771
aliases=['-a'],
6872
description='Add a new TOTP entry to the database.',
@@ -95,10 +99,16 @@ def add_interactive(path):
9599
def add_uri(path, uri):
96100
totp.add_pass_entry_from_uri(path, uri)
97101

98-
@subcommand('show',
99-
argument('-s', dest='offset_seconds', metavar='SECONDS', default=0,
102+
@subcommand(
103+
'show',
104+
argument(
105+
'-s',
106+
dest='offset_seconds',
107+
metavar='SECONDS',
108+
default=0,
100109
help='offset the clock by the given number of seconds'),
101-
argument('identifier',
110+
argument(
111+
'identifier',
102112
help='the identifier by which the key can be found under the \'2fa\' folder'),
103113
description='Show the current TOTP token for a registered entry.',
104114
help='(default action) show the current TOTP token for a registered entry')

0 commit comments

Comments
 (0)