yes: this applet doesn't have options, don't lie that it does.
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 6 Jun 2010 03:23:09 +0000 (05:23 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 6 Jun 2010 03:23:09 +0000 (05:23 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/yes.c
include/usage.src.h

index d757a4504db1b247516ee3ea9645daee113b7b9b..ead674b27eacffa722e01d638ceaac08fdfcc479 100644 (file)
 
 /* This is a NOFORK applet. Be very careful! */
 
+//usage:#define yes_trivial_usage
+//usage:       "[STRING]"
+//usage:#define yes_full_usage "\n\n"
+//usage:       "Repeatedly output a line with STRING, or 'y'"
+
 int yes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int yes_main(int argc UNUSED_PARAM, char **argv)
 {
index 78c0a0f1c513d9b6fe70bd02c082704915fbf68c..f9f4578711ce465a05dc60419c87d31a6698469a 100644 (file)
@@ -5236,11 +5236,6 @@ INSERT
        "$ ls | xargs gzip\n" \
        "$ find . -name '*.c' -print | xargs rm\n"
 
-#define yes_trivial_usage \
-       "[OPTIONS] [STRING]"
-#define yes_full_usage "\n\n" \
-       "Repeatedly output a line with STRING, or 'y'"
-
 #define zcat_trivial_usage \
        "FILE"
 #define zcat_full_usage "\n\n" \