diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-03 10:35:34 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-04 09:30:09 +0200 |
commit | 54dd6301e2f3e452abc4ccdbe6893f342fdb7abb (patch) | |
tree | 2d0e3a8c911ebd2330165d21588470fe5b980329 /bootstrap.conf | |
parent | 1e2eac49d65c715c6c5534c3ae185a0b03ce8453 (diff) | |
download | grep-54dd6301e2f3e452abc4ccdbe6893f342fdb7abb.tar.gz |
maint: use argmatch, for better --directories=INVAL diagnostics
Before, you'd see this:
grep: unknown directories method
Now, you'll see this:
grep: invalid argument `INVAL' for `--directories'
Valid arguments are:
- `read'
- `recurse'
- `skip'
Usage: src/grep [OPTION]... PATTERN [FILE]...
Try `src/grep --help' for more information.
* bootstrap.conf: Add argmatch.
* configure.ac: Define ARGMATCH_DIE and ARGMATCH_DIE_DECL.
* src/main.c (directories_type): Define.
(directories_args, directories_types) Define.
All of the above so we can...
(main): Use XARGMATCH.
(usage): Declare extern, now that argmatch calls it via ARGMATCH_DIE.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index 682e578e..54d4775a 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -20,6 +20,7 @@ gnulib_modules=' alloca announce-gen +argmatch atexit binary-io btowc |