Skip to content

Accept --dry-run as a synonym (alias) to --preview #783

@Septh

Description

@Septh

Description

As the clig says:

Where possible, a CLI should follow patterns that already exist. That’s what makes CLIs intuitive and guessable; that’s what makes users efficient.

npm uses --dry-run.
yarn uses --dry-run.
pnpm uses --dry-run.
git uses --dry-run.

I think np should support --dry-run as well.

Also, because misusing np could potentially lead to catastrophic consequences, maybe np should reject unknown CLI flags rather than simply ignore them. I for one wish it had rejected --dry-run that I just mistakenly used instead of --preview 😬.

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions