024 cli command surface

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

run check myfile.txt v=true

Expected output

run check myfile.txt v=true

Flows

flow ~flag click a branch to expand · @labels scroll to their anchor
flag (verbose, source: "type": "boolean", "short": "v", "description": "chatter")
flow ~flag click a branch to expand · @labels scroll to their anchor
flag (output, source: "type": "string", "required": true, "description": "write here")
flow ~command click a branch to expand · @labels scroll to their anchor
command (run, source: "description": "run the thing", "subcommands": ["check", "fire"])
flow ~std/cli click a branch to expand · @labels scroll to their anchor
std/cli

Test Configuration

MUST_RUN LANGUAGES: zig

argv (one per line):

run
check
myfile.txt
--verbose
--output
o.txt