mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
13 lines
221 B
V
13 lines
221 B
V
import cli { Command, CommandFlag }
|
|
|
|
fn main() {
|
|
mut cmd := Command{
|
|
version: '0.1.0'
|
|
defaults: struct {
|
|
help: CommandFlag{true, false}
|
|
version: CommandFlag{false, true}
|
|
man: false
|
|
}
|
|
}
|
|
cmd.parse([''])
|
|
}
|