From 3bc225e14fc4ab3a25890614fea87041ef80a129 Mon Sep 17 00:00:00 2001 From: Rasmus Lindroth Date: Sun, 28 Jun 2020 15:32:11 +0200 Subject: [PATCH] fix flags --- .gitignore | 2 ++ main.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 722d5e7..f96a7d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .vscode +Makefile +bin/ diff --git a/main.go b/main.go index effbccc..1ee500d 100644 --- a/main.go +++ b/main.go @@ -20,6 +20,7 @@ func main() { CreateDefaultConfig("./config.example.ini") os.Exit(0) case "--help": + fallthrough case "-h": fmt.Print("tut - a TUI for Mastodon with vim inspired keys.\n\n") fmt.Print("Usage:\n\n") @@ -41,6 +42,7 @@ func main() { fmt.Printf("\thttps://github.com/RasmusLindroth/tut\n") os.Exit(0) case "--version": + fallthrough case "-v": fmt.Printf("tut version %s\n\n", version) fmt.Printf("https://github.com/RasmusLindroth/tut\n")