new updates
This commit is contained in:
parent
4827be1d2a
commit
63be841469
9
argv.go
9
argv.go
|
@ -8,8 +8,6 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"go.wit.com/dev/alexflint/arg"
|
||||
)
|
||||
|
||||
var argv args
|
||||
|
@ -34,20 +32,13 @@ func (args) Version() string {
|
|||
return ARGNAME + " " + VERSION + " Built on " + BUILDTIME
|
||||
}
|
||||
|
||||
func init() {
|
||||
arg.MustParse(&argv)
|
||||
}
|
||||
|
||||
func (a args) DoAutoComplete(argv []string) {
|
||||
// argv.doBashHelp()
|
||||
switch argv[0] {
|
||||
case "merge":
|
||||
fmt.Println("--force")
|
||||
default:
|
||||
if argv[0] == ARGNAME {
|
||||
// list the subcommands here
|
||||
fmt.Println("list merge")
|
||||
}
|
||||
}
|
||||
os.Exit(0)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue