diff options
author | Jim Meyering <jim@meyering.net> | 1999-01-01 21:47:08 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-01-01 21:47:08 +0000 |
commit | 3972420f3b82033be9205db19aeea588df80056f (patch) | |
tree | e1e0aef0446108ed7a50b6d9f0702ed400a8844e /src | |
parent | 94c2a11f47cb7ecfb5130ca0c996e16e8e4182ec (diff) | |
download | coreutils-3972420f3b82033be9205db19aeea588df80056f.tar.xz |
(parse_options): Use XARGCASEMATCH in place of argmatch.
Diffstat (limited to 'src')
-rw-r--r-- | src/tail.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/tail.c b/src/tail.c index fe90e3672..e5e4e852d 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1,5 +1,5 @@ /* tail -- output the last part of file(s) - Copyright (C) 89, 90, 91, 95, 96, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 89, 90, 91, 95, 96, 1997, 1998, 1999 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1240,18 +1240,11 @@ parse_options (int argc, char **argv, case 'f': forever = 1; - if (optarg == NULL) - follow_mode = DEFAULT_FOLLOW_MODE; - else - { - int i = argmatch (optarg, follow_mode_string); - if (i < 0) - { - invalid_arg (_("follow mode"), optarg, i); - usage (1); - } - follow_mode = follow_mode_map[i]; - } + follow_mode = (optarg == NULL + ? DEFAULT_FOLLOW_MODE + : XARGCASEMATCH ("--follow", optarg, + follow_mode_string, + follow_mode_map)); break; case CHAR_MAX + 1: |