Skip to content

Commit cc0d055

Browse files
committed
fix(cortex-cli): accept uppercase shell names in completion command
Fixes bounty issue #1551 The completion command now accepts shell names in any case (e.g., BASH, Bash, bash) by adding ignore_case = true to the shell argument attribute in CompletionCommand.
1 parent 8f839ec commit cc0d055

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cortex-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ struct LogoutCommand {
275275
#[derive(Args)]
276276
struct CompletionCommand {
277277
/// Shell to generate completions for
278-
#[arg(value_enum, default_value_t = Shell::Bash)]
278+
#[arg(value_enum, default_value_t = Shell::Bash, ignore_case = true)]
279279
shell: Shell,
280280
}
281281

0 commit comments

Comments
 (0)