Skip to main content

Module cli

Module cli 

Source
Expand description

Declarative CLI definition for the aprender-ptx-debug binary.

The parser lives in the library rather than in src/bin/main.rs so that integration tests can exercise it directly, matching the house pattern used by the other CLI crates in this workspace.

Hand-rolled match args[1] dispatch is banned here: unknown flags fall through catch-all arms, a valued flag given without a value gets discarded, and an unparseable value degrades into a default instead of an error. clap derive makes each of those a hard parse failure.

Structs§

AnalyzeArgs
Arguments for the analyze subcommand.
Cli
Top-level command line for aprender-ptx-debug.
GenFkrArgs
Arguments for the gen-fkr subcommand.

Enums§

Command
Available subcommands.

Functions§

exit_code_for_parse_error
Map a clap parse failure onto the process exit code.
version_string
Render the version string used by both --version and the version subcommand, so the two surfaces cannot drift apart.