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