mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
commands: Fixed tests
This commit is contained in:
@ -12,8 +12,10 @@ func TestOptionParsing(t *testing.T) {
|
||||
Options: []commands.Option{
|
||||
commands.Option{Names: []string{"b"}, Type: commands.String},
|
||||
},
|
||||
Subcommands: map[string]*commands.Command{
|
||||
"test": &commands.Command{},
|
||||
},
|
||||
}
|
||||
cmd.Register("test", &commands.Command{})
|
||||
|
||||
opts, input, err := parseOptions([]string{"--beep", "-boop=lol", "test2", "-c", "beep", "--foo=5"})
|
||||
/*for k, v := range opts {
|
||||
|
Reference in New Issue
Block a user