Use ValueEnum for --level and --format CLI args #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium
crates/presentation/src/lib.rslines 289-295: any unrecognized--levelvalue silently defaults toModulevia the_arm. A user typing--level typ(a typo) gets no feedback.--leveland--formatareStringin the CLI struct (crates/presentation/src/cli.rslines 17-21) when they should be enums withclap::ValueEnumderive. Clap would then validate and provide shell completions for free.