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