Closed
Description
There is a tiny consistency bug in the CLI's -q
option position for the task
subcommand specifically. The Deno CLI itself (deno [OPTIONS] [SUBCOMMAND]
) supports -q
for most (all?) subcommands except task
.
Consider the following:
$ echo '{"tasks": {"echo": "echo"}}' > deno.json
$ deno -q task echo
Task not found: task
Available tasks:
- echo
echo
Instead, the -q
option must appear after the subcommand:
$ deno task -q echo
This is inconsistent with most other subcommands and the the CLI help documentation. Eg, fmt
works as expected:
$ deno -q fmt
The expected supported format is always deno [OPTIONS] [SUBCOMMAND]
. deno -q task
, in this case.