Age | Commit message (Collapse) | Author |
|
(argp_usage): New inline function.
|
|
|
|
(ARGP_HELP_STD_USAGE): ... whereas this does.
|
|
|
|
(hol_entry_help): Print the right documentation string for each entry.
(argp_help): Renamed from argp_usage.
(make_hol): Deal with a null value of OPT. If there are no entries, don't
define the ENTRIES or SHORT_OPTIONS fields.
(hol_free): Don't free ENTRIES or SHORT_OPTIONS unless there are any.
(hol_sort): Don't sort unless there are some entries.
(hol_usage): Don't do anything unless there are some entries.
(hol_sort): Sort int he correct order.
(hol_append): Implement.
(argp_help): Add the ARGP_HELP_SHORT_USAGE case.
|
|
Update STATE.argp when adding a wrapper to implement the --help option.
In general, use the version of variables that are in STATE.
Update STATE.index in the case where getopt returns EOF.
Correctly translate options.
(argp_default_parser, argp_parse): Rename uses of argp_usage* to argp_help*.
(argp_parse):
Deal with null parser or option fields.
If an argp has neither a parser or any options, don't put it in GROUPS.
Use comparison with EGROUP, rather than testing the parser field, the end
test for iteration over GROUPS.
(argp_parse): Pass in the right value for GROUPS to convert_options.
|
|
(ARGP_HELP_STD_HELP): Use ARGP_HELP_SHORT_USAGE instead of ARGP_HELP_USAGE.
|
|
(LCLHDRS): Add line.h and argp.h.
|
|
|
|
|
|
Put all the group attributes into structures which get stored in the GROUPS
array, rather than having a separate array for each.
Implement ARGP_KEY_NO_ARGS in a better way.
|
|
|
|
(ARGP_KEY_NO_ARGS): New macro.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set optind to 0, so that getopt will reinitialize itself.
|
|
|
|
|
|
vector, and argz_extract extracts the arguments into an argv type vector.
|
|
|