diff options
author | Bernhard Reutner-Fischer | 2006-03-31 18:43:55 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2006-03-31 18:43:55 +0000 |
commit | 81901a096c67b079fced2e63af4e15a2ca50465e (patch) | |
tree | 4e20f68dfb7373e902f2fb8430c02209d6eb78e8 /applets/applets.c | |
parent | 2766eedde85f092153a2affb2d3da491e2670982 (diff) | |
download | busybox-81901a096c67b079fced2e63af4e15a2ca50465e.zip busybox-81901a096c67b079fced2e63af4e15a2ca50465e.tar.gz |
- add option to suppress the terse usage messages. Saves 6.8k for defconfig:
text data bss dec hex filename
861791 11264 1039140 1912195 1d2d83 busybox.have-terse-usage
854799 11264 1039140 1905203 1d1233 busybox.no-terse
Diffstat (limited to 'applets/applets.c')
-rw-r--r-- | applets/applets.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/applets.c b/applets/applets.c index 82a6417..77e4fdb 100644 --- a/applets/applets.c +++ b/applets/applets.c @@ -32,6 +32,7 @@ #include <assert.h> #include "busybox.h" +#if ENABLE_SHOW_USAGE const char usage_messages[] = #define MAKE_USAGE @@ -42,6 +43,7 @@ const char usage_messages[] = ; #undef MAKE_USAGE +#endif /* ENABLE_SHOW_USAGE */ #undef APPLET #undef APPLET_NOUSAGE #undef PROTOTYPES @@ -407,6 +409,7 @@ static void check_suid (struct BB_applet *applet) void bb_show_usage (void) { +#if ENABLE_SHOW_USAGE const char *format_string; const char *usage_string = usage_messages; int i; @@ -422,6 +425,7 @@ void bb_show_usage (void) format_string = "%s\n\nNo help available.\n\n"; fprintf (stderr, format_string, bb_msg_full_version, applet_using->name, usage_string); +#endif /* ENABLE_SHOW_USAGE */ exit (bb_default_error_retval); } |