fix yargs

This commit is contained in:
Ramnique Singh 2025-11-21 11:43:59 +05:30
parent 97e47faca8
commit 014c8a56f5

View file

@ -11,7 +11,8 @@ yargs(hideBin(process.argv))
(y) => y (y) => y
.option("agent", { .option("agent", {
type: "string", type: "string",
description: "The agent to run (defaults to copilot)", description: "The agent to run",
default: "copilot",
}) })
.option("run_id", { .option("run_id", {
type: "string", type: "string",
@ -26,10 +27,9 @@ yargs(hideBin(process.argv))
description: "Do not interact with the user", description: "Do not interact with the user",
default: false, default: false,
}), }),
async (argv) => { (argv) => {
let agent = argv.agent ?? "copilot"; app({
await app({ agent: argv.agent,
agent,
runId: argv.run_id, runId: argv.run_id,
input: argv.input, input: argv.input,
noInteractive: argv.noInteractive, noInteractive: argv.noInteractive,