From 72c332fa45ff2f47feba81c91255d8a97024e59b Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 9 Apr 2018 09:52:29 -0500 Subject: [PATCH] Add `start` as an alias for `add`. --- ptk.nim | 8 ++++---- ptk.nimble | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ptk.nim b/ptk.nim index 99ebc5c..23cc781 100644 --- a/ptk.nim +++ b/ptk.nim @@ -344,8 +344,8 @@ when isMainModule: let doc = """ Usage: ptk init [options] - ptk add [options] - ptk add [options] + ptk (add | start) [options] + ptk (add | start) [options] ptk resume [options] [] ptk amend [options] [] [] ptk merge [...] @@ -387,7 +387,7 @@ Options: let now = getLocalTime(getTime()) # Parse arguments - let args = docopt(doc, version = "ptk 0.11.1") + let args = docopt(doc, version = "ptk 0.11.2") if args["--echo-args"]: echo $args @@ -507,7 +507,7 @@ Options: saveTimeline(timeline, timelineLocation) - if args["add"]: + if args["add"] or args["start"]: var newMark: Mark = ( id: genUUID(), diff --git a/ptk.nimble b/ptk.nimble index ddba54f..9a4e836 100644 --- a/ptk.nimble +++ b/ptk.nimble @@ -1,6 +1,6 @@ # Package -version = "0.11.1" +version = "0.11.2" author = "Jonathan Bernard" description = "Personal Time Keeper" license = "MIT"