Use global applet_name instead of local versions.
[oweals/busybox.git] / cat.c
diff --git a/cat.c b/cat.c
index 58a1b0f54482d0f498420b47f962f85a4575ef93..80044346048acdbd8c76030976f823c1feef5dce 100644 (file)
--- a/cat.c
+++ b/cat.c
@@ -2,7 +2,7 @@
 /*
  * Mini Cat implementation for busybox
  *
- * Copyright (C) 1999 by Lineo, inc.
+ * Copyright (C) 1999,2000 by Lineo, inc.
  * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -45,7 +45,11 @@ extern int cat_main(int argc, char **argv)
        }
 
        if (**(argv + 1) == '-') {
-               usage("cat [file ...]\n");
+               usage("cat [FILE ...]\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+                               "\nConcatenates FILE(s) and prints them to the standard output.\n"
+#endif
+                               );
        }
        argc--;
 
@@ -57,7 +61,7 @@ extern int cat_main(int argc, char **argv)
                }
                print_file(file);
        }
-       exit(TRUE);
+       return(TRUE);
 }
 
 /*