Age | Commit message (Collapse) | Author |
|
(argp_parse):
Add HOOK argument.
Implement passing hook values to parsers, and propagating them between
parents and children.
When printing `too many arguments', test ARGP_NO_ERRS, not ARGP_NO_HELP.
(argp_default_options): Add --usage option.
(argp_default_parser):
Use argp_state_help, so we don't need to screw with exit options anymore.
Add usage option.
|
|
many arguments.
|
|
use '?' as a short option.
(KEY_ERR): New macro.
(argp_default_options, argp_default_parser):
Use -? as the short option for --help.
|
|
Don't parse args in order by default.
Deal correctly when the user turns a non-option arg into an option in
re-ordering mode.
Honor ARGP_NO_ARGS.
Use KEY_END, KEY_ARG, and QUOTE.
(KEY_END): New macro, in place of EOF.
(KEY_ARG, QUOTE): New macros.
|
|
When a non-option arg fails to be parsed with EINVAL, set ARG_EINVAL true,
and leave ERR as is until just before we return.
Put process_arg() in the right scope.
Deal with getopt returning EOF early because of `--'.
Make STATE.arg_num per-group.
(struct group):
Renamed process_arg field to args_processed (a count).
|
|
|
|
Add `const' where appropriate.
|
|
Add --program-name (hidden) option.
(OPT_PROGNAME): New macro.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
|
|
|