Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
cli
/
testdata
/
default_command_no_flag_err.vv
11
lines
·
10
sloc
·
175 bytes
·
c0fec31bef12ca36b2df70d4327e016688891f10
Raw
1
import cli { Command, CommandFlag }
2
3
fn main() {
4
mut cmd := Command{
5
name: 'foo'
6
defaults: struct {
7
man: CommandFlag{true, false}
8
}
9
}
10
cmd.parse(['foo', '-man'])
11
}
12