mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 00:10:10 +00:00
(Long Options): getopt_long in getopt.h
This commit is contained in:
parent
ee263689e0
commit
1b82a4a8ca
@ -316,7 +316,8 @@ Non-option argument -
|
||||
@subsection Parsing Long Options
|
||||
|
||||
To accept GNU-style long options as well as single-character options,
|
||||
use @code{getopt_long} instead of @code{getopt}. You should make every
|
||||
use @code{getopt_long} instead of @code{getopt}. This function is
|
||||
declared in @file{getopt.h}, not @file{unistd.h}. You should make every
|
||||
program accept long options if it uses any options, for this takes
|
||||
little extra work and helps beginners remember how to use the program.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user