Skip to content

Commit 0a1a36c

Browse files
committed
fix parsing
1 parent 8ae4b4d commit 0a1a36c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,17 +150,16 @@ const program = new Command(packageJson.name)
150150
`,
151151
)
152152
.option(
153-
"--tools ",
153+
"--tools <tools>",
154154
`
155155
156156
Specify the tools you want to use by providing a comma-separated list. For example, 'wikipedia.WikipediaToolSpec,google.GoogleSearchToolSpec'. Use 'none' to not using any tools.
157157
`,
158-
(tools, _) => {
159-
if (tools === "none") {
158+
(tools) => {
159+
if (!tools || tools === "none") {
160160
return [];
161-
} else {
162-
return getTools(tools.split(","));
163161
}
162+
return getTools(tools.split(","));
164163
},
165164
)
166165
.option(

0 commit comments

Comments
 (0)