v / vlib / cli / testdata / default_command_no_flag_err.vv
11 lines · 10 sloc · 175 bytes · c0fec31bef12ca36b2df70d4327e016688891f10
Raw
1import cli { Command, CommandFlag }
2
3fn 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