summaryrefslogtreecommitdiff
path: root/usage.c
diff options
context:
space:
mode:
authorEric Andersen2000-08-21 22:46:33 +0000
committerEric Andersen2000-08-21 22:46:33 +0000
commit918507eddaa70b3f75196802b8f905f97bd5f5b6 (patch)
tree83f5bff33a0bb5d9087fdb64ea4e8da3d5e138db /usage.c
parent851ce895bdf33b95ccbfc67061f8949e36fad196 (diff)
downloadbusybox-918507eddaa70b3f75196802b8f905f97bd5f5b6.zip
busybox-918507eddaa70b3f75196802b8f905f97bd5f5b6.tar.gz
Added the 'rdate' command, thanks to Sterling Huxley <sterling@europa.com>.
I added the docs, and made behavior identical to the GNU version. -Erik
Diffstat (limited to 'usage.c')
-rw-r--r--usage.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/usage.c b/usage.c
index eaa77cc..7cd05c8 100644
--- a/usage.c
+++ b/usage.c
@@ -855,6 +855,18 @@ const char pwd_usage[] =
;
#endif
+#if defined BB_RDATE
+const char rdate_usage[] =
+ "rdate [OPTION] HOST\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nGet and possibly set the system date and time from a remote HOST.\n"
+ "Options:\n"
+ "\t-s\tSet the system date and time (default).\n"
+ "\t-p\tPrint the date and time.\n"
+#endif
+ ;
+#endif
+
#if defined BB_REBOOT
const char reboot_usage[] =
"reboot\n"