mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-28 19:05:31 +02:00
fix yargs
This commit is contained in:
parent
97e47faca8
commit
014c8a56f5
1 changed files with 10 additions and 10 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue