test use of --version
This commit is contained in:
parent
93fcb0e87d
commit
a68d6000b6
|
@ -1011,3 +1011,10 @@ func TestReuseParser(t *testing.T) {
|
|||
err = p.Parse([]string{})
|
||||
assert.Error(t, err)
|
||||
}
|
||||
|
||||
func TestVersion(t *testing.T) {
|
||||
var args struct{}
|
||||
err := parse("--version", &args)
|
||||
assert.Equal(t, ErrVersion, err)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue