commit 1c8c7e6d58fb15795d8ee99f3c9b2a3b03001ad0
parent 60e779e0b864e4c32b66a69135215fa0a05a0bef
Author: Matthias Balk <matthias.balk@fotopuzzle.de>
Date: Tue, 18 Sep 2018 10:31:21 +0200
Command 'create' can also be invoked by 'add' for convenience
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ya3 b/ya3
@@ -10,7 +10,7 @@ import config
usage = """%prog <command>
- commands: create, print"""
+ commands: create|add, print"""
parser = OptionParser(usage=usage)
(options, args) = parser.parse_args()
@@ -19,7 +19,7 @@ if len(args) != 1:
else:
command = args[0]
- if command == 'create':
+ if command == 'create' or command == 'add':
commands.create_event()
elif command == 'print':
for filename in glob.glob(os.path.join(config.CAL_DIR, '*.ics')):