Should flags in POSIX-style operating systems be prefixed by “no” or “no_”?
-
12-09-2019 - |
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
Solution
Neither. Use no-
i.e. --no-foo
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow