This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: [about getopt] a simple option request


---------- Forwarded message ----------
From: Leaveye <leaveye.guo@gmail.com>
Date: 2011/10/12
Subject: [about getopt] a simple option request


hi all,

upon some projects run over, some user and developer reports that a
option accept more than one parameter is needed.


currently, users can only use {--connect HOST:PORT} or {--connect "HOST PORT"}.
in either way, developers need to handwriting some ugly strtok()s and
users need to remember the
additional and useless delemeters, or have to convert the string to
avoid some syntax error.

if the multi-parameter-option is usable, all people will be happier.

e.g.

Â... --connect HOST PORT ...

or

Â... --connect HOST PORT OptionalPORT ...

through it may increase the complexity and difficulty of getopt(), but
future work and product will be better.


i did not find the maillist, so directly mail to this address, reply
to my own mail address please.

regards.

--
Levi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]