[BusyBox] [PATCH] - Doc, halt (pidof, poweroff): usage.h

Felipe Kellermann stdfk at terra.com.br
Fri Jul 23 05:21:45 UTC 2004


On Fri, 23 Jul 2004 1:26am  -0300, Felipe Kellermann wrote:

> Package: busybox
> Version: v1.00-rc1 (2004.07.22-02:18+0000)
> Severity: doc sync
> 
> Another one.
> A missing usage option, halt applet.

Missing `]' here, ignore this patch.  OK, I'm attaching this other which 
fixes three other doc inconsistencies:  `pidof', `poweroff', `halt'.

-- 
Felipe Kellermann
-------------- next part --------------
Index: include/usage.h
===================================================================
RCS file: /var/cvs/busybox/include/usage.h,v
retrieving revision 1.216
diff -u -3 -p -b -w -u -r1.216 usage.h
--- include/usage.h	23 Jul 2004 03:33:38 -0000	1.216
+++ include/usage.h	23 Jul 2004 05:16:50 -0000
@@ -828,9 +828,11 @@
 	"-rw-rw-r--    1 andersen andersen   554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
 
 #define halt_trivial_usage \
-	""
+	"[-d<delay>]"
 #define halt_full_usage \
-	"Halt the system."
+	"Halt the system.\n" \
+	"Options:\n" \
+	"\t-d\t\tdelay interval for halting.\n"
 
 #ifdef CONFIG_FEATURE_HDPARM_GET_IDENTITY
 #define USAGE_HDPARM_IDENT(a) a
@@ -1838,10 +1840,12 @@
 	"$ patch -p1 <example.diff"
 
 #define pidof_trivial_usage \
-	"process-name [process-name ...]"
+	"process-name [OPTION] [process-name ...]"
 #define pidof_full_usage \
 	"Lists the PIDs of all processes with names that match the\n" \
-	"names on the command line"
+	"names on the command line.\n" \
+	"Options:\n" \
+	"\t-s\t\tdisplay only a single PID.\n"
 #define pidof_example_usage \
 	"$ pidof init\n" \
 	"1\n"
@@ -1899,9 +1903,11 @@
 	"the new root file system."
 
 #define poweroff_trivial_usage \
-	""
+	"[-d<delay>]"
 #define poweroff_full_usage \
-	"Halt the system and request that the kernel shut off the power."
+	"Halt the system and request that the kernel shut off the power.\n" \
+	"Options:\n" \
+	"\t-d\t\tdelay interval for shutting off.\n"
 
 #define printf_trivial_usage \
 	"FORMAT [ARGUMENT...]"


More information about the busybox mailing list