Skip to content

-q option position is inconsistent for the task subcommand #15290

Closed
@niedzielski

Description

@niedzielski

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clirelated to cli/ dirfeatnew feature (which has been agreed to/accepted)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions