Add start
as an alias for add
.
This commit is contained in:
parent
4a878026d8
commit
72c332fa45
8
ptk.nim
8
ptk.nim
@ -344,8 +344,8 @@ when isMainModule:
|
||||
let doc = """
|
||||
Usage:
|
||||
ptk init [options]
|
||||
ptk add [options]
|
||||
ptk add [options] <summary>
|
||||
ptk (add | start) [options]
|
||||
ptk (add | start) [options] <summary>
|
||||
ptk resume [options] [<id>]
|
||||
ptk amend [options] [<id>] [<summary>]
|
||||
ptk merge <timeline> [<timeline>...]
|
||||
@ -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(),
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "0.11.1"
|
||||
version = "0.11.2"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Personal Time Keeper"
|
||||
license = "MIT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user