mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-13 03:22:30 +03:00
(Long Options): getopt_long in getopt.h
This commit is contained in:
@@ -316,7 +316,8 @@ Non-option argument -
|
|||||||
@subsection Parsing Long Options
|
@subsection Parsing Long Options
|
||||||
|
|
||||||
To accept GNU-style long options as well as single-character 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
|
program accept long options if it uses any options, for this takes
|
||||||
little extra work and helps beginners remember how to use the program.
|
little extra work and helps beginners remember how to use the program.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user