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.
This commit is contained in:
Bernhard Voelker committed 2014-03-26 11:26:58 +01:00
1 parent 7f669b40c9
commit 25c2f0d617
1 file changed
+2 -1
+2 -1
View File
@@ -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;