bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: argp OPTION_ARG_OPTIONAL and -short options


From: Ulrich Drepper
Subject: Re: argp OPTION_ARG_OPTIONAL and -short options
Date: 07 Oct 2001 13:09:26 -0700
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.2 (Thelxepeia)

"J. Jones" <address@hidden> writes:

> The "short option" equivalents of options that accept an optional
> argument don't seem to behave properly.  If the argument to --option is
> required, then both -ofoo and -o foo return "foo" as the argument.  If
> the argument is defined as optional, only -ofoo will return "foo" as the
> argument.

This is what has to happen.  How should the getopt/argp functions
otherwise recognize an optional argument?

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]