mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
11 lines
142 B
V
11 lines
142 B
V
import cli { Command }
|
|
|
|
fn main() {
|
|
mut cmd := Command{
|
|
name: 'cmd'
|
|
}
|
|
cmd.add_command(
|
|
name: 'foo'
|
|
)
|
|
cmd.parse(['', 'cmd', 'foo'])
|
|
}
|