diff options
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -9,26 +9,22 @@ package main */ import ( - "go.wit.com/dev/alexflint/arg" "go.wit.com/log" ) var argv args type args struct { - Daemon bool `arg:"--daemon" default:"false" help:"run in daemon mode"` - Port int `arg:"--port" default:"2522" help:"port to run on"` - URL string `arg:"--url" help:"url to use"` + Verbose bool `arg:"--verbose" help:"talk more"` + Daemon bool `arg:"--daemon" default:"false" help:"run in daemon mode"` + Port int `arg:"--port" default:"2522" help:"port to run on"` + URL string `arg:"--url" help:"url to use"` } func (args) Version() string { return "gus " + VERSION + " Built on: " + BUILDTIME } -func init() { - arg.MustParse(&argv) -} - func (a args) Description() string { return ` this daemon talks to zookeeper |
