v / vlib / cli / testdata / no_execute.vv
11 lines · 10 sloc · 142 bytes · b53012a09b0e1672c803a20fab103ed0a8802d11
Raw
1import cli { Command }
2
3fn main() {
4 mut cmd := Command{
5 name: 'cmd'
6 }
7 cmd.add_command(
8 name: 'foo'
9 )
10 cmd.parse(['', 'cmd', 'foo'])
11}
12