diff --git a/ptk.nim b/ptk.nim index 23cc781..c73e06d 100644 --- a/ptk.nim +++ b/ptk.nim @@ -387,7 +387,7 @@ Options: let now = getLocalTime(getTime()) # Parse arguments - let args = docopt(doc, version = "ptk 0.11.2") + let args = docopt(doc, version = "ptk 0.11.3") if args["--echo-args"]: echo $args @@ -472,7 +472,7 @@ Options: time: if args["--time"]: parseTime($args["--time"]) else: now, summary: STOP_MSG, notes: args["--notes"] ?: "", - tags: (args["--tags"] ?: "").split({',', ';'})) + tags: (args["--tags"] ?: "").split({',', ';'}).filterIt(not it.isNilOrWhitespace)) timeline.marks.add(newMark) @@ -514,7 +514,7 @@ Options: time: if args["--time"]: parseTime($args["--time"]) else: now, summary: args["<summary>"] ?: "", notes: args["--notes"] ?: "", - tags: (args["--tags"] ?: "").split({',', ';'})) + tags: (args["--tags"] ?: "").split({',', ';'}).filterIt(not it.isNilOrWhitespace)) if args["--edit"]: edit(newMark) diff --git a/ptk.nimble b/ptk.nimble index 9a4e836..43fbdab 100644 --- a/ptk.nimble +++ b/ptk.nimble @@ -1,6 +1,6 @@ # Package -version = "0.11.2" +version = "0.11.3" author = "Jonathan Bernard" description = "Personal Time Keeper" license = "MIT"