1
0
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:
Matt Bell
2014-10-21 18:06:19 -07:00
parent ca44d0da2c
commit dd81bf630f
2 changed files with 40 additions and 52 deletions

View File

@ -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 {