v2 / vlib / cli / testdata / default_command_flag.vv
13 lines · 12 sloc · 221 bytes · b53012a09b0e1672c803a20fab103ed0a8802d11
Raw
1import cli { Command, CommandFlag }
2
3fn 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