summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2019-02-01 01:06:04 +0100
committerNikolaus Gotsche <n@softwarefools.com>2019-02-01 01:06:04 +0100
commit23fbbca5ce653426d7c1e0d832b64cb3b7c28973 (patch)
tree7a791a258dbf111e51da88f25606adc7f1163dfc /main.go
parent6c86f4f64187dd924519426efeb79196923f5584 (diff)
Some DocumentationHEAD0.6master
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/main.go b/main.go
index f024299..548880b 100644
--- a/main.go
+++ b/main.go
@@ -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)