aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-06-03 16:50:12 +0200
committerTeddy Wing2017-06-03 16:50:12 +0200
commit4a4b8e00ae62ec3898b7e4f590bd4a3660a0f535 (patch)
tree281d299775826839bdcdb4e0f92fe57d96097519
parent73d5fa6c6233331c54d9b7a74407f2d17294e233 (diff)
downloadtimetasker-4a4b8e00ae62ec3898b7e4f590bd4a3660a0f535.tar.bz2
main.go: Add a short version of the --date argument
Forgot to do this in 8d802bff08826523371ab5e951d85d0c0396ccc8. Also, the reason why I made --description's short form `-m` is because I wanted `-d` for date. The `-m` is supposed to be like "message", like in git-commit.
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 625f075..e655967 100644
--- a/main.go
+++ b/main.go
@@ -40,6 +40,7 @@ func main() {
Default("7").
Int()
date := kingpin.Flag("date", "Date when work was done (e.g. 2017-01-31)").
+ Short('d').
String()
description := kingpin.Flag("description", "Description of work.").
Short('m').