diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2019-02-01 01:06:04 +0100 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2019-02-01 01:06:04 +0100 |
| commit | 23fbbca5ce653426d7c1e0d832b64cb3b7c28973 (patch) | |
| tree | 7a791a258dbf111e51da88f25606adc7f1163dfc /main.go | |
| parent | 6c86f4f64187dd924519426efeb79196923f5584 (diff) | |
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -45,7 +45,7 @@ func init() { getopt.FlagLong(&menubar, "no-menu", 'm', "Dont Show Menu") getopt.FlagLong(&scaling, "magnify", 'g', "Magnification level") getopt.FlagLong(&countd, "count-down", 'd', "Set Count down in seconds for auto-quit") - getopt.FlagLong(&themestr, "color-theme", 'c', "Specify Theme") + getopt.FlagLong(&themestr, "color-theme", 'c', "Specify Theme: Dark, Red, White or Default") getopt.FlagLong(&help, "help", 'h', "Show Program Usage") getopt.FlagLong(&filename, "file", 'f', "The textfile to be parsed and displayed") getopt.FlagLong(&exitbut, "quit-button", 'q', "Label of the Quit Button") @@ -54,10 +54,7 @@ func init() { func main() { - //timer := time.NewTimer(time.Second*time.Duration(countd*1000)) - //defer timer.Stop() go func() { - //<-timer.C time.Sleep(time.Duration(countd)*time.Second) if countd>0 { fmt.Println("Timer of",countd,"s has Ended") @@ -137,7 +134,7 @@ func main() { } func showHelp() { - fmt.Printf("Usage of %s Version %s:\n A simple and Customizable Cheatsheet viewer.\n When No Text is piped and no File specified the Parameters\n will be shown as Text.\n\n", os.Args[0], version) + fmt.Printf("Usage of %s\n Version %s Compiled %s\n A simple and Customizable Cheatsheet viewer.\n When No Text is piped and no File specified\n the Parameters will be shown as Text.\n\n", os.Args[0], version, compdate) getopt.Usage() os.Exit(0) |
