]> Savannah Git Hosting - gnulib.git/commit
argmatch: add support to generate the usage message
authorAkim Demaille <akim.demaille@gmail.com>
Tue, 30 Apr 2019 06:01:14 +0000 (08:01 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Fri, 21 Jun 2019 16:35:01 +0000 (18:35 +0200)
commit5d00a2ec62270ded0438b5641a97b9ea0a1cd159
tree2fb46e5cb4db958407e0302980d96e1177c67e79
parent13644a8180a084c4c682d54f27a2eaab01a92d7f
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.
ChangeLog
doc/argmatch.texi [new file with mode: 0644]
doc/gnulib.texi
lib/argmatch.c
lib/argmatch.h
modules/argmatch
tests/test-argmatch.c