1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Usage example: ```v module main import os import cli fn main() { mut app := cli.Command{ name: 'example-app' description: 'example-app' execute: fn (cmd cli.Command) ? { println('hello app') return } commands: [ cli.Command{ name: 'sub' execute: fn (cmd cli.Command) ? { println('hello subcommand') return } }, ] } app.setup() app.parse(os.args) } ```