diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-04-30 08:01:14 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-06-21 18:35:01 +0200 |
commit | 5d00a2ec62270ded0438b5641a97b9ea0a1cd159 (patch) | |
tree | 2fb46e5cb4db958407e0302980d96e1177c67e79 /modules/argmatch | |
parent | 13644a8180a084c4c682d54f27a2eaab01a92d7f (diff) | |
download | gnulib-5d00a2ec62270ded0438b5641a97b9ea0a1cd159.tar.gz |
argmatch: add support to generate the usage message
* lib/argmatch.c: Move some #includes and gettext support to...
* lib/argmatch.h: here.
(ARGMATCH_DEFINE_GROUP): New macro.
* tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
(argmatch_backup_group): New.
(CHECK): New.
(main): Check argmatch_backup_value, argmatch_backup_xvalue,
argmatch_backup_argument and argmatch_backup_usage.
* modules/argmatch: We depend on c99.
* doc/argmatch.texi (Recognizing Option Arguments): New.
* doc/gnulib.texi: Use it.
Diffstat (limited to 'modules/argmatch')
-rw-r--r-- | modules/argmatch | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/argmatch b/modules/argmatch index 1ae3756453..7814eba797 100644 --- a/modules/argmatch +++ b/modules/argmatch @@ -6,16 +6,17 @@ lib/argmatch.h lib/argmatch.c Depends-on: -gettext-h +c99 error -quotearg -quote exitfail -verify +getprogname +gettext-h +memcmp +quote +quotearg stdbool stdlib -memcmp -getprogname +verify configure.ac: |