Skip to content

Commit 3f38b6b

Browse files
factorydroidechobt
authored andcommitted
fix(cortex-cli): improve --with-api-key help text with usage example
Fixes bounty issue #1392 The help text for the --with-api-key flag now includes a concrete usage example showing how to pipe an API key from an environment variable, making it clearer how to use this flag.
1 parent d826985 commit 3f38b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ struct LoginCommand {
245245
#[clap(skip)]
246246
config_overrides: CliConfigOverrides,
247247

248-
/// Read the API key from stdin
248+
/// Read the API key from stdin (e.g., `printenv OPENAI_API_KEY | cortex login --with-api-key`)
249249
#[arg(long = "with-api-key")]
250250
with_api_key: bool,
251251

0 commit comments

Comments
 (0)