Bug #13044
closed
Clarify parts of getopt_long(3C)
Added by Robert Mustacchi almost 2 years ago.
Updated almost 2 years ago.
Category:
manpage - manual pages
Description
The other day I was trying to figure out how to modify things to use long options with getopt_long(3C). There were a couple of things I found that was a bit implicit to folks. In particular it's useful to clarify how you have an option that's only short, an option that's only long, and an option that's both short and long.
I tested this by looking at the new page with man(1)
and then I also took the new example code and copy and pasted it into a new C file, built it with all warnings enabled and verified that it worked.
- Status changed from New to Closed
- % Done changed from 80 to 100
git commit 31c9b836861e74f837a36ca29220b58f3657585a
commit 31c9b836861e74f837a36ca29220b58f3657585a
Author: Robert Mustacchi <rm@fingolfin.org>
Date: 2020-08-25T01:09:23.000Z
13044 Clarify parts of getopt_long(3C)
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Also available in: Atom
PDF