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