Skip to content

Commit d688be0

Browse files
committed
fix(cli): allow prompts starting with hyphens in exec mode
Fixes bounty issue #1511 Clap treats arguments starting with '-' as flags by default. Added 'allow_hyphen_values = true' to the prompt argument definition to allow passing content like YAML frontmatter directly.
1 parent 8f839ec commit d688be0

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
@@ -208,7 +208,7 @@ enum Commands {
208208
#[derive(Args)]
209209
struct ExecCommand {
210210
/// Prompt to execute
211-
#[arg(required = true)]
211+
#[arg(required = true, allow_hyphen_values = true)]
212212
prompt: String,
213213

214214
/// Output format (human, json, jsonl)

0 commit comments

Comments
 (0)