Closed suntong closed 8 years ago
root
command should set Global
option true:
var root = &cli.Command{
Name: "dump",
Desc: "dump assistant program",
Text: "Swiss-army assistant toolkit",
Global: true,
Argv: func() interface{} { return new(rootT) },
Fn: dump,
NumArg: cli.ExactN(1),
}
Thanks a lot!
Hey, Please take a look at https://gist.github.com/suntong/cb2bf3d3ada7d7941aac8ef338a815a1#file-dump-go
the previous version was OK (or maybe it didn't work before either, but I can't recall clearly now). Anyway, when running this one, I got the errors like this:
What's wrong?