mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +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
|
||||
|
||||
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.
|
||||
|
||||
|
Reference in New Issue
Block a user