Skip to content

Commit 2f1d92e

Browse files
committed
Fix CLI begin, start, mark commands
The do_ commands are passed a single argument. Even though the argument is not used, it still needs to be specified for the command to work.
1 parent 7bc8b1d commit 2f1d92e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

diary.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from cryptography.fernet import Fernet, InvalidToken
2929

3030
__app_name__ = 'Diary'
31-
__version__ = '0.1.1'
31+
__version__ = '0.1.2'
3232

3333
actiondict = {'b': "Begin ", 's': "Stop ", 'm': "Mark "}
3434
actionregex = '' + '|'.join([v for k, v in actiondict.items()])
@@ -64,15 +64,15 @@ def __init__(self, config):
6464

6565
self.config = config
6666

67-
def do_b(self):
67+
def do_b(self, arg):
6868
"""Append your diary with Begin [Timestamp] [Computer Name]."""
6969
write_to_diary(self.config, 'b')
7070

71-
def do_s(self):
71+
def do_s(self, arg):
7272
"""Append your diary with Stop [Timestamp] [Computer Name]."""
7373
write_to_diary(self.config, 's')
7474

75-
def do_m(self):
75+
def do_m(self, arg):
7676
"""Append your diary with Mark [Timestamp] [Computer Name]."""
7777
write_to_diary(self.config, 'm')
7878

0 commit comments

Comments
 (0)