mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
commands/cli: Add a test for 3e8244
License: MIT Signed-off-by: Thomas Gardner <tmg@fastmail.com>
This commit is contained in:
parent
3e824412d9
commit
7279153a0c
@ -134,6 +134,7 @@ func TestOptionParsing(t *testing.T) {
|
||||
test("-b test false", kvs{"b": true}, words{"false"})
|
||||
test("-b --string foo test bar", kvs{"b": true, "string": "foo"}, words{"bar"})
|
||||
test("-b=false --string bar", kvs{"b": false, "string": "bar"}, words{})
|
||||
testFail("foo test")
|
||||
}
|
||||
|
||||
func TestArgumentParsing(t *testing.T) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user