diff options
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -10,12 +10,14 @@ import ( "go.wit.com/log" ) -var args struct { +var argv args + +type args struct { Daemon bool `arg:"--daemon" help:"run without a gui"` } func init() { - arg.MustParse(&args) + arg.MustParse(&argv) if debugger.ArgDebug() { log.Info("cmd line --debugger == true") @@ -25,3 +27,7 @@ func init() { }() } } + +func (args) Version() string { + return "go-clone " + VERSION + " Built on " + BUILDTIME +} |
