summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2014-03-25 23:41:45 +0100
committerBernhard Voelker <mail@bernhard-voelker.de>2014-03-26 11:26:58 +0100
commit25c2f0d617259ed9bf9398b5042db78c8d17245d (patch)
tree8b8e60dabb9f3a8582b0c5917cc58fef798d32d9 /src
parent7f669b40c91bda7d6d4827d20cc637dcda08c68a (diff)
downloadcoreutils-25c2f0d617259ed9bf9398b5042db78c8d17245d.tar.xz
basename: mention that the -s option implies -a in usage
* src/basename.c (usage): Mention that -s implies -a. (main): Add "fall through" comment to case 's'. Spotted by coverity: MISSING_BREAK.
Diffstat (limited to 'src')
-rw-r--r--src/basename.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basename.c b/src/basename.c
index c34ec6cb2..05c5c7750 100644
--- a/src/basename.c
+++ b/src/basename.c
@@ -59,7 +59,7 @@ If specified, also remove a trailing SUFFIX.\n\
fputs (_("\
-a, --multiple support multiple arguments and treat each as a NAME\n\
- -s, --suffix=SUFFIX remove a trailing SUFFIX\n\
+ -s, --suffix=SUFFIX remove a trailing SUFFIX; implies -a\n\
-z, --zero separate output with NUL rather than newline\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
@@ -146,6 +146,7 @@ main (int argc, char **argv)
{
case 's':
suffix = optarg;
+ /* Fall through: -s implies -a. */
case 'a':
multiple_names = true;