summaryrefslogtreecommitdiff
path: root/include/usage.h
diff options
context:
space:
mode:
authorGlenn L McGrath2003-01-05 04:01:56 +0000
committerGlenn L McGrath2003-01-05 04:01:56 +0000
commit58c708af23d6ad855ea0cd1b61c2b87f26fc6988 (patch)
treef685aca3eb4a763dd0c58a291c766f018f8656c3 /include/usage.h
parentc2e74ca934860d7cd4b02ab51e4466ae34871223 (diff)
downloadbusybox-58c708af23d6ad855ea0cd1b61c2b87f26fc6988.zip
busybox-58c708af23d6ad855ea0cd1b61c2b87f26fc6988.tar.gz
New applet: httpd, by Glenn Engel
Diffstat (limited to 'include/usage.h')
-rw-r--r--include/usage.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/usage.h b/include/usage.h
index b568711..dfcc896 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -775,7 +775,20 @@
#define hostname_example_usage \
"$ hostname\n" \
"sage \n"
-
+#ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH
+ #define USAGE_HTTPD_BASIC_AUTH(a) a
+#else
+ #define USAGE_HTTPD_BASIC_AUTH(a)
+#endif
+#define httpd_trivial_usage \
+ "[-p <port>] [-d/-e <string>]" USAGE_HTTPD_BASIC_AUTH(" [-c <conf file>] [-r <realm>]")
+#define httpd_full_usage \
+ "Listens for incoming http server requests.\n"\
+ "Options:\n" \
+ "\t-p PORT\tServer port (default 80).\n" \
+ USAGE_HTTPD_BASIC_AUTH("\t-c FILE\tSpecifies configuration file. (default httpd.conf)\n\t-r REALM\tAuthentication Realm for Basic Authentication\n") \
+ "\t-e STRING\tHtml encode STRING\n" \
+ "\t-d STRING\tURL decode STRING\n"
#define hwclock_trivial_usage \
"[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]"
#define hwclock_full_usage \