Skip to content

Commit 5c6fea4

Browse files
factorydroidechobt
authored andcommitted
fix(cortex-cli): document environment variables in help output
Fixes bounty issue #1684 Added ENVIRONMENT VARIABLES section to the main help output documenting: - CORTEX_AUTH_TOKEN: Authentication token for API access - CORTEX_HOME: Override home directory (affects all directories) - CORTEX_CONFIG_DIR: Override configuration directory path - CORTEX_DATA_DIR: Override data directory path - CORTEX_CACHE_DIR: Override cache directory path - CORTEX_API_URL: Override API endpoint URL
1 parent 50d2da0 commit 5c6fea4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cortex-cli/src/main.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,15 @@ use cortex_common::CliConfigOverrides;
4545
#[command(about = "Cortex - AI Coding Agent", long_about = None)]
4646
#[command(
4747
subcommand_negates_reqs = true,
48-
override_usage = "Cortex [OPTIONS] [PROMPT]\n Cortex [OPTIONS] <COMMAND> [ARGS]"
48+
override_usage = "Cortex [OPTIONS] [PROMPT]\n Cortex [OPTIONS] <COMMAND> [ARGS]",
49+
after_help = r#"ENVIRONMENT VARIABLES:
50+
CORTEX_AUTH_TOKEN Authentication token for API access
51+
CORTEX_HOME Override home directory (affects all directories below)
52+
CORTEX_CONFIG_DIR Override configuration directory path
53+
CORTEX_DATA_DIR Override data directory path
54+
CORTEX_CACHE_DIR Override cache directory path
55+
CORTEX_API_URL Override API endpoint URL
56+
"#
4957
)]
5058
struct Cli {
5159
#[clap(flatten)]

0 commit comments

Comments
 (0)