views:

41

answers:

1

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
+3  A: 

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

laalto