mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
11 lines
175 B
V
11 lines
175 B
V
import cli { Command, CommandFlag }
|
|
|
|
fn main() {
|
|
mut cmd := Command{
|
|
name: 'foo'
|
|
defaults: struct {
|
|
man: CommandFlag{true, false}
|
|
}
|
|
}
|
|
cmd.parse(['foo', '-man'])
|
|
}
|