Add --yolo alias for --dangerously-skip-permissions
This commit is contained in:
parent
5948dcaed1
commit
f9c521286b
1 changed files with 7 additions and 0 deletions
|
|
@ -48,11 +48,18 @@ function parseArgs(): Args {
|
|||
console.log(
|
||||
" --secret <secret> Authentication secret (env: CLAUDE_REMOTE_SECRET)",
|
||||
);
|
||||
console.log(
|
||||
" --yolo Alias for --dangerously-skip-permissions",
|
||||
);
|
||||
console.log("");
|
||||
} else {
|
||||
console.error("Failed to run 'claude --help'. Is claude installed?");
|
||||
}
|
||||
process.exit(result.exitCode ?? 0);
|
||||
} else if (args[i] === "--yolo") {
|
||||
// Alias for --dangerously-skip-permissions
|
||||
claudeArgs.push("--dangerously-skip-permissions");
|
||||
i++;
|
||||
} else if (args[i] === "--") {
|
||||
// -- separator is optional, just skip it
|
||||
claudeArgs.push(...args.slice(i + 1));
|
||||
|
|
|
|||
Loading…
Reference in a new issue