Skip to content

Commit 105cf53

Browse files
committed
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 771ba8f commit 105cf53

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
@@ -237,7 +237,7 @@ struct LoginCommand {
237237
#[clap(skip)]
238238
config_overrides: CliConfigOverrides,
239239

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

0 commit comments

Comments
 (0)