Age | Commit message (Collapse) | Author |
|
(argp_error): Take an argp_state instead of an argp, and only doing anything
if ARGP_NO_ERRS isn't set in it.
(argp_state_help): New function.
(argp_help): Don't interpret exiting options anymore.
|
|
(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.
|
|
Add HOOK and CHILD_HOOKS fields.
Rename the PARENTS field to be CHILDREN (the most common use is
initialization, so this change shouldn't have much effect).
(ARGP_KEY_BEGIN, ARGP_KEY_ERROR): New macros.
(argp_state_help): New function.
(argp_usage, argp_error): Change arguments.
|
|
|
|
many arguments.
|
|
|
|
|
|
(LCLHDRS): Add maptime.h.
|
|
|
|
use '?' as a short option.
(KEY_ERR): New macro.
(argp_default_options, argp_default_parser):
Use -? as the short option for --help.
|
|
(LCLHDRS): Add timefmt.h.
|
|
|
|
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).
|
|
|
|
|
|
|
|
|
|
hol_entry_first_short, hol_entry_first_long, hol_find_entry, hol_sort,
hol_entry_help, argp_hol, argp_args_usage, argp_doc, argp_help, argp_error):
Add `const' where appropriate.
|
|
Add `const' where appropriate.
|
|
argp_error, _option_is_short, _option_is_end): Add `const' where appropriate.
|
|
|
|
|
|
Correctly print group headers, and precede them with a blank line.
(struct hol_entry, make_hol, hol_sort, hol_set_group):
Rename the `set_class' field to be `group'.
(hol_help, hol_entry_help):
After a group header has been printed, separate subsequent groups with a
blank line.
(hol_set_group): Renamed from hol_set_sort_class.
(argp_help): Use hol_set_group instead of hol_set_sort_class.
|
|
Add --program-name (hidden) option.
(OPT_PROGNAME): New macro.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(idvec_ensure): Alloc NUM ids, not NUM chars!
(idvec_remove): Correctly copy ids when deleting.
|
|
|
|
(idvec_setid): Use idvec_insert_only() instead of idvec_insert_new().
|
|
|
|
|
|
idvec_tail_contains, idvec_add_new, idvec_insert_new, idvec_merge_ids,
idvec_setid, idvec_merge_auth): New declarations.
|
|
idvec_tail_contains, idvec_add_new, idvec_insert_new, idvec_merge_ids,
idvec_setid): New functions.
(idvec_insert): Rewritten to use idvec_grow().
|
|
|
|
Use the new GROUP field in struct argp_option to initialize sort_classes.
(HEADER_COL): New macro.
(hol_entry_help): Deal with group headers.
|
|
(_option_is_end): Be more pessimistic about what constitutes `the end'.
|
|
(LCLHDRS): Remove options.h. Rename ivec.h to idvec.h.
|
|
(make_idvec, idvec_insert, idvec_add, idvec_contains):
All renamed from the corresponding `ivec' declaration, and types, variable
names, etc, changed accordingly.
|
|
All renamed from the corresponding `ivec' routine, and types, variable
names, etc, changed accordingly.
|
|
ARGZ to insert before.
(argz_next): New inline function.
|
|
Instead of an integer position N, take a pointer into ARGZ to insert before.
|
|
|
|
|
|
(LCLHDRS): Add ivec.h.
|