We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2a1c7 commit 0bf9a2eCopy full SHA for 0bf9a2e
src/cli/eval.ts
@@ -9,16 +9,9 @@ export function evalCommand() {
9
Or read from stdin:\n
10
echo "console.log($.shell)" | dzx eval
11
`)
12
- .arguments("<code:string>")
13
- .useRawArgs()
+ .arguments("[code]")
14
.action(
15
- async function (_: void, ...args: Array<string>) {
16
- if (["-h", "--help"].includes(args[0])) {
17
- this.showHelp();
18
- Deno.exit(0);
19
- }
20
- const code = args.shift();
21
-
+ async function (_: void, code?: string) {
22
if (!code && Deno.isatty(Deno.stdin.rid)) {
23
throw new ValidationError(`Missing argument(s): script`);
24
}
0 commit comments