Question

When you have a boolean option and a flag for setting it to false by prefixing "no" to the name, should it be "no" or "no_"? What's most commonly used or better style? For example:

--no_foo

or

--nofoo
Was it helpful?

Solution

Neither. Use no- i.e. --no-foo.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top