diff options
author | Rical Jasan <ricaljasan@pacific.net> | 2016-10-06 12:19:25 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2016-10-06 12:19:25 +0530 |
commit | 954cbda0faae0f8e5d47b3a536ef37d8fb2c2626 (patch) | |
tree | 9edcf936b05ddf1864c86a71ee6e91b5582719eb /manual/getopt.texi | |
parent | 16c7d1ec26ecf4cbd3a128a23cf2a8ab495a89b8 (diff) | |
download | glibc-954cbda0faae0f8e5d47b3a536ef37d8fb2c2626.tar.gz glibc-954cbda0faae0f8e5d47b3a536ef37d8fb2c2626.tar.xz glibc-954cbda0faae0f8e5d47b3a536ef37d8fb2c2626.zip |
Manual typos: The Basic Program/System Interface
2016-05-06 Rical Jasan <ricaljasan@pacific.net> * manual/argp.texi: Fix typos in the manual. * manual/getopt.texi: Likewise. * manual/startup.texi: Likewise.
Diffstat (limited to 'manual/getopt.texi')
-rw-r--r-- | manual/getopt.texi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manual/getopt.texi b/manual/getopt.texi index aa4134b0e5..20e11ef2e2 100644 --- a/manual/getopt.texi +++ b/manual/getopt.texi @@ -110,7 +110,7 @@ is treated specially. It permits arguments that are not options to be returned as if they were associated with option character @samp{\1}. @item -POSIX demands the following behavior: The first non-option stops option +POSIX demands the following behavior: the first non-option stops option processing. This mode is selected by either setting the environment variable @code{POSIXLY_CORRECT} or beginning the @var{options} argument string with a plus sign (@samp{+}). @@ -256,7 +256,7 @@ options to accept (see above). When @code{getopt_long} encounters a short option, it does the same thing that @code{getopt} would do: it returns the character code for the -option, and stores the options argument (if it has one) in @code{optarg}. +option, and stores the option's argument (if it has one) in @code{optarg}. When @code{getopt_long} encounters a long option, it takes actions based on the @code{flag} and @code{val} fields of the definition of that @@ -293,8 +293,8 @@ When @code{getopt_long} has no more options to handle, it returns @var{argv} of the next remaining argument. @end deftypefun -Since long option names were used before the @code{getopt_long} -options was invented there are program interfaces which require programs +Since long option names were used before @code{getopt_long} +was invented there are program interfaces which require programs to recognize options like @w{@samp{-option value}} instead of @w{@samp{--option value}}. To enable these programs to use the GNU getopt functionality there is one more function available. @@ -306,7 +306,7 @@ getopt functionality there is one more function available. @c Same issues as getopt. The @code{getopt_long_only} function is equivalent to the -@code{getopt_long} function but it allows to specify the user of the +@code{getopt_long} function but it allows the user of the application to pass long options with only @samp{-} instead of @samp{--}. The @samp{--} prefix is still recognized but instead of looking through the short options if a @samp{-} is seen it is first |