Project

General

Profile

Actions

Bug #13044

closed

Clarify parts of getopt_long(3C)

Added by Robert Mustacchi about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
manpage - manual pages
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

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.

Actions #1

Updated by Electric Monk about 1 year ago

  • Gerrit CR set to 847
Actions #2

Updated by Robert Mustacchi about 1 year ago

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.

Actions #3

Updated by Electric Monk about 1 year ago

  • 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>

Actions

Also available in: Atom PDF