2

When naming command-line flags, and flags in general what's the best practice regarding flags that disable things?

Should I be going for something like:

--disable-thinging

or

--no-thinging
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526

1 Answers1

0

I'd make it --thinging 0 and --thinging 1 (or with false/true). Just like a boolean variable. You can document the default value.

usr
  • 168,620
  • 35
  • 240
  • 369