DELAPARRA
Index
Color
NL
Category: CLI flags

--no-X, --without-X (Negation flag)

Explained by Updated

What is --no-X, --without-X (Negation flag)?

--no-X, --without-X (Negation flag): Disable a feature that is on by default. Many command-line tools switch a feature on by default and give you a --no- flag to turn it off. git commit --no-verify skips the commit hooks. npm install --no-save installs a package without adding it to package.json. git log --no-merges hides merge commits.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about --no-X, --without-X (Negation flag)

How is --no-X, --without-X (Negation flag) used in practice?

The pattern is useful because you can read it without the manual. If a tool has --color, there is a good chance --no-color also exists. Some tools use --without- instead, especially build scripts, as in ./configure --without-ssl.

What should you keep in mind with --no-X, --without-X (Negation flag)?

Be careful with flags that skip a safety step. --no-verify exists for emergencies, but if you use it every day, the hook it skips is either broken or in the wrong place. Fix the hook rather than training yourself to step around it.

At a glance

CategoryCLI flags
Explained by
Updated

More CLI flags terms

All terms starting with a number or symbol

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.