On Jan 9, 2021 7:07 AM, Christian Weisgerber <[email protected]> wrote:

  Edgar Pettijohn:

  > In the BUGS section for the getopt(3) manual it mentions not using
  > single digits for options. I know spamd uses -4 and -6 there are
  > probably others. Should they be changed? Or is the manual mistaken?

  You misunderstand.  The manual warns against the use of digits to
  pass numerical arguments.  This usage exists in some historical
  cases, e.g. "nice -10" where <10> is the number 10.

  The use of digits as flags characters, like -4 or -6 to indicate
  IPv4 or IPv6, is perfectly fine.

  --
  Christian "naddy" Weisgerber                         
  [email protected]

Makes sense. I think it would have been clearer if it just had an example
of what not to do instead of how to do the wrong thing right.
Thanks,
Edgar 

Reply via email to