projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58d6acd
)
(main): Use XARGCASEMATCH in place of argmatch & co.
author
Jim Meyering
<jim@meyering.net>
Thu, 31 Dec 1998 21:59:42 +0000
(21:59 +0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 31 Dec 1998 21:59:42 +0000
(21:59 +0000)
src/cp.c
patch
|
blob
|
history
diff --git
a/src/cp.c
b/src/cp.c
index
59541f3
..
c2d1517
100644
(file)
--- a/
src/cp.c
+++ b/
src/cp.c
@@
-655,18
+655,8
@@
main (int argc, char **argv)
break;
case CHAR_MAX + 1:
- {
- int i;
-
- /* --sparse={never,auto,always} */
- i = argmatch (optarg, sparse_type_string);
- if (i < 0)
- {
- invalid_arg (_("sparse type"), optarg, i);
- usage (1);
- }
- x.sparse_mode = sparse_type[i];
- }
+ x.sparse_mode = XARGCASEMATCH ("--sparse", optarg,
+ sparse_type_string, sparse_type);
break;
case 'a': /* Like -dpR. */