diff options
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -18,11 +18,12 @@ type args struct { Gui *EmptyCmd `arg:"subcommand:gui" help:"show gui"` Merge *EmptyCmd `arg:"subcommand:merge" help:"merge in new patchsets"` Init *EmptyCmd `arg:"subcommand:init" help:"init the repo list"` - Port int `arg:"--port" default:"2520" help:"port to run on"` - Hostname string `arg:"--hostname" default:"forge.wit.com" help:"hostname to use"` - Daemon bool `arg:"--daemon" help:"run as a daemon"` - Force bool `arg:"--force" help:"try to strong arm things"` - Verbose bool `arg:"--verbose" help:"show more output"` + Repos *EmptyCmd `arg:"subcommand:repos" help:"show the repos"` + Port int `arg:"--port" default:"2520" help:"port to run on"` + Hostname string `arg:"--hostname" help:"hostname to use"` + Daemon bool `arg:"--daemon" help:"run as a daemon"` + Force bool `arg:"--force" help:"try to strong arm things"` + Verbose bool `arg:"--verbose" help:"show more output"` } type EmptyCmd struct { @@ -38,7 +39,7 @@ func (a args) DoAutoComplete(argv []string) { case "merge": fmt.Println("--force") default: - fmt.Println("list merge") + fmt.Println("list merge repos") } os.Exit(0) } |
