argument-parsing helpers c/unix
i know following:
- the princely
getopt(3)
- the extended
getopt_long
- glibc's parser unix-style justification vectors
- lilliputian digest (or the devout heir )
i'm certain there's some-more i haven't used even listened of; discerning google hunt reveals , , .
personally, i argp
best, each way i wrote controlling getopt
/getopt_long
(beyond certain baseline complexity) converted argp
. it's some-more widely accessible popt
, some-more comprehensive getopt_long
, well-documented, unchanging gnu-style conventions, unequivocally flexible. downside, it's distant easiest (thanks being flexible), formula support definitely plain (as things c).
what use, why?
yes, i meant c rather c++. there ton c++ parsers, nonetheless i don't c++.
john millikin annals popt
longer maintained. i list since programs still -- including abiword, rpm, rsync, samba -- notwithstanding gnome's efforts . nonetheless i've total couple glib's justification parser now, too.
for c++ justification parsing, doubt
Comments
Post a Comment