diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-17 16:38:21 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-17 16:38:21 +0000 |
commit | 081ef799fa2b2d9c372f1ca20c13beec40866eeb (patch) | |
tree | 4ace2b03c0c2223cbc16648e0201aa1f76df50b7 | |
parent | 7a96504d30e0bcafb5e014555c741fea6513172a (diff) | |
download | busybox-w32-081ef799fa2b2d9c372f1ca20c13beec40866eeb.tar.gz busybox-w32-081ef799fa2b2d9c372f1ca20c13beec40866eeb.tar.bz2 busybox-w32-081ef799fa2b2d9c372f1ca20c13beec40866eeb.zip |
random fixes to help text
-rw-r--r-- | include/usage.h | 117 |
1 files changed, 61 insertions, 56 deletions
diff --git a/include/usage.h b/include/usage.h index 7abd9ef7d..db38504b8 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -152,16 +152,16 @@ | |||
152 | "[-jy] [[month] year]" | 152 | "[-jy] [[month] year]" |
153 | #define cal_full_usage \ | 153 | #define cal_full_usage \ |
154 | "Display a calendar" \ | 154 | "Display a calendar" \ |
155 | "\n\nOptions:\n" \ | 155 | "\n\nOptions:" \ |
156 | " -j Use julian dates\n" \ | 156 | "\n -j Use julian dates" \ |
157 | " -y Display the entire year" | 157 | "\n -y Display the entire year" |
158 | 158 | ||
159 | #define cat_trivial_usage \ | 159 | #define cat_trivial_usage \ |
160 | "[-u] [FILE]..." | 160 | "[-u] [FILE]..." |
161 | #define cat_full_usage \ | 161 | #define cat_full_usage \ |
162 | "Concatenate FILE(s) and print them to stdout" \ | 162 | "Concatenate FILE(s) and print them to stdout" \ |
163 | "\n\nOptions:\n" \ | 163 | "\n\nOptions:" \ |
164 | " -u Ignored since unbuffered i/o is always used" | 164 | "\n -u Ignored since unbuffered i/o is always used" |
165 | #define cat_example_usage \ | 165 | #define cat_example_usage \ |
166 | "$ cat /proc/uptime\n" \ | 166 | "$ cat /proc/uptime\n" \ |
167 | "110716.72 17.67" | 167 | "110716.72 17.67" |
@@ -203,37 +203,17 @@ | |||
203 | " chcon [OPTIONS] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE...\n" \ | 203 | " chcon [OPTIONS] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE...\n" \ |
204 | " chcon [OPTIONS] --reference=RFILE FILE...\n" | 204 | " chcon [OPTIONS] --reference=RFILE FILE...\n" |
205 | #define chcon_full_usage \ | 205 | #define chcon_full_usage \ |
206 | "Change the security context of each FILE to CONTEXT\n\n" \ | 206 | "Change the security context of each FILE to CONTEXT\n" \ |
207 | " -c, --changes Like verbose but report only when a change is made\n" \ | 207 | "\n -v, --verbose Verbose" \ |
208 | " -h, --no-dereference Affect symbolic links instead of any referenced file\n" \ | 208 | "\n -c, --changes Report changes made" \ |
209 | " (available only on systems with lchown system call)\n" \ | 209 | "\n -h, --no-dereference Affect symlinks instead of their targets" \ |
210 | " -f, --silent, --quiet Suppress most error messages\n" \ | 210 | "\n -f, --silent, --quiet Suppress most error messages" \ |
211 | " --reference=RFILE Use RFILE's group instead of using a CONTEXT value\n" \ | 211 | "\n --reference=RFILE Use RFILE's group instead of using a CONTEXT value" \ |
212 | " -u, --user=USER Set user USER in the target security context\n" \ | 212 | "\n -u, --user=USER Set user USER in the target security context" \ |
213 | " -r, --role=ROLE Set role ROLE in the target security context\n" \ | 213 | "\n -r, --role=ROLE Set role ROLE in the target security context" \ |
214 | " -t, --type=TYPE Set type TYPE in the target security context\n" \ | 214 | "\n -t, --type=TYPE Set type TYPE in the target security context" \ |
215 | " -l, --range=RANGE Set range RANGE in the target security context\n" \ | 215 | "\n -l, --range=RANGE Set range RANGE in the target security context" \ |
216 | " -R, --recursive Recurse subdirs\n" \ | 216 | "\n -R, --recursive Recurse subdirectories" \ |
217 | " -v, --verbose Verbose mode" \ | ||
218 | |||
219 | #define chgrp_trivial_usage \ | ||
220 | "[-Rh"USE_DESKTOP("cvf")"]... GROUP FILE..." | ||
221 | #define chgrp_full_usage \ | ||
222 | "Change the group membership of each FILE to GROUP" \ | ||
223 | "\n\nOptions:\n" \ | ||
224 | " -R Changes files and directories recursively\n" \ | ||
225 | " -h Do not dereference symbolic links" \ | ||
226 | USE_DESKTOP( \ | ||
227 | "\n -c List changed files" \ | ||
228 | "\n -v List all files" \ | ||
229 | "\n -f Hide errors" \ | ||
230 | ) | ||
231 | #define chgrp_example_usage \ | ||
232 | "$ ls -l /tmp/foo\n" \ | ||
233 | "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \ | ||
234 | "$ chgrp root /tmp/foo\n" \ | ||
235 | "$ ls -l /tmp/foo\n" \ | ||
236 | "-r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo\n" | ||
237 | 217 | ||
238 | #define chmod_trivial_usage \ | 218 | #define chmod_trivial_usage \ |
239 | "[-R"USE_DESKTOP("cvf")"] MODE[,MODE]... FILE..." | 219 | "[-R"USE_DESKTOP("cvf")"] MODE[,MODE]... FILE..." |
@@ -257,13 +237,38 @@ | |||
257 | "$ ls -l /tmp/foo\n" \ | 237 | "$ ls -l /tmp/foo\n" \ |
258 | "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" | 238 | "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" |
259 | 239 | ||
240 | #define chgrp_trivial_usage \ | ||
241 | "[-RhLHP"USE_DESKTOP("cvf")"]... GROUP FILE..." | ||
242 | #define chgrp_full_usage \ | ||
243 | "Change the group membership of each FILE to GROUP" \ | ||
244 | "\n\nOptions:" \ | ||
245 | "\n -R Recurse directories" \ | ||
246 | "\n -h Affect symlinks instead of symlink targets" \ | ||
247 | "\n -L Traverse all symlinks to directories" \ | ||
248 | "\n -H Traverse symlinks on command line only" \ | ||
249 | "\n -P Do not traverse symlinks (default)" \ | ||
250 | USE_DESKTOP( \ | ||
251 | "\n -c List changed files" \ | ||
252 | "\n -v Verbose" \ | ||
253 | "\n -f Hide errors" \ | ||
254 | ) | ||
255 | #define chgrp_example_usage \ | ||
256 | "$ ls -l /tmp/foo\n" \ | ||
257 | "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \ | ||
258 | "$ chgrp root /tmp/foo\n" \ | ||
259 | "$ ls -l /tmp/foo\n" \ | ||
260 | "-r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo\n" | ||
261 | |||
260 | #define chown_trivial_usage \ | 262 | #define chown_trivial_usage \ |
261 | "[-Rh"USE_DESKTOP("cvf")"]... OWNER[<.|:>[GROUP]] FILE..." | 263 | "[-RhLHP"USE_DESKTOP("cvf")"]... OWNER[<.|:>[GROUP]] FILE..." |
262 | #define chown_full_usage \ | 264 | #define chown_full_usage \ |
263 | "Change the owner and/or group of each FILE to OWNER and/or GROUP" \ | 265 | "Change the owner and/or group of each FILE to OWNER and/or GROUP" \ |
264 | "\n\nOptions:" \ | 266 | "\n\nOptions:" \ |
265 | "\n -R Changes files and directories recursively" \ | 267 | "\n -R Recurse directories" \ |
266 | "\n -h Do not dereference symbolic links" \ | 268 | "\n -h Affect symlinks instead of symlink targets" \ |
269 | "\n -L Traverse all symlinks to directories" \ | ||
270 | "\n -H Traverse symlinks on command line only" \ | ||
271 | "\n -P Do not traverse symlinks (default)" \ | ||
267 | USE_DESKTOP( \ | 272 | USE_DESKTOP( \ |
268 | "\n -c List changed files" \ | 273 | "\n -c List changed files" \ |
269 | "\n -v List all files" \ | 274 | "\n -v List all files" \ |
@@ -420,18 +425,18 @@ | |||
420 | "[OPTION]... SOURCE DEST" | 425 | "[OPTION]... SOURCE DEST" |
421 | #define cp_full_usage \ | 426 | #define cp_full_usage \ |
422 | "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY" \ | 427 | "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY" \ |
423 | "\n\nOptions:\n" \ | 428 | "\n\nOptions:" \ |
424 | " -a Same as -dpR\n" \ | 429 | "\n -a Same as -dpR" \ |
425 | USE_SELINUX( \ | 430 | USE_SELINUX( \ |
426 | " -c Preserves security context\n" \ | 431 | "\n -c Preserves security context" \ |
427 | ) \ | 432 | ) \ |
428 | " -d,-P Preserve links\n" \ | 433 | "\n -d,-P Preserve links" \ |
429 | " -H,-L Dereference all symlinks (implied by default)\n" \ | 434 | "\n -H,-L Dereference all symlinks (default)" \ |
430 | " -p Preserve file attributes if possible\n" \ | 435 | "\n -p Preserve file attributes if possible" \ |
431 | " -f Force, overwrite\n" \ | 436 | "\n -f Force overwrite" \ |
432 | " -i Interactive, prompt before overwrite\n" \ | 437 | "\n -i Prompt before overwrite" \ |
433 | " -R,-r Copy directories recursively\n" \ | 438 | "\n -R,-r Recurse directories" \ |
434 | " -l,-s Create (sym)links" | 439 | "\n -l,-s Create (sym)links" |
435 | 440 | ||
436 | #define cpio_trivial_usage \ | 441 | #define cpio_trivial_usage \ |
437 | "-[dimtuv][F cpiofile]" | 442 | "-[dimtuv][F cpiofile]" |
@@ -717,8 +722,8 @@ | |||
717 | " bytes." \ | 722 | " bytes." \ |
718 | "\n\nOptions:\n" \ | 723 | "\n\nOptions:\n" \ |
719 | " -a Show sizes of files in addition to directories\n" \ | 724 | " -a Show sizes of files in addition to directories\n" \ |
720 | " -H Follow symbolic links that are FILE command line args\n" \ | 725 | " -H Follow symlinks that are FILE command line args\n" \ |
721 | " -L Follow all symbolic links encountered\n" \ | 726 | " -L Follow all symlinks encountered\n" \ |
722 | " -d N Limit output to directories (and files with -a) of depth < N\n" \ | 727 | " -d N Limit output to directories (and files with -a) of depth < N\n" \ |
723 | " -c Output a grand total\n" \ | 728 | " -c Output a grand total\n" \ |
724 | " -l Count sizes many times if hard linked\n" \ | 729 | " -l Count sizes many times if hard linked\n" \ |
@@ -929,7 +934,7 @@ | |||
929 | "Search for files in a directory hierarchy. The default PATH is\n" \ | 934 | "Search for files in a directory hierarchy. The default PATH is\n" \ |
930 | "the current directory; default EXPRESSION is '-print'\n" \ | 935 | "the current directory; default EXPRESSION is '-print'\n" \ |
931 | "\nEXPRESSION may consist of:\n" \ | 936 | "\nEXPRESSION may consist of:\n" \ |
932 | " -follow Dereference symbolic links\n" \ | 937 | " -follow Dereference symlinks\n" \ |
933 | " -name PATTERN File name (leading directories removed) matches PATTERN\n" \ | 938 | " -name PATTERN File name (leading directories removed) matches PATTERN\n" \ |
934 | " -print Print (default and assumed)" \ | 939 | " -print Print (default and assumed)" \ |
935 | USE_FEATURE_FIND_PRINT0( \ | 940 | USE_FEATURE_FIND_PRINT0( \ |
@@ -1743,7 +1748,7 @@ | |||
1743 | "Create a link named LINK_NAME or DIRECTORY to the specified TARGET.\n" \ | 1748 | "Create a link named LINK_NAME or DIRECTORY to the specified TARGET.\n" \ |
1744 | "You may use '--' to indicate that all following arguments are non-options." \ | 1749 | "You may use '--' to indicate that all following arguments are non-options." \ |
1745 | "\n\nOptions:\n" \ | 1750 | "\n\nOptions:\n" \ |
1746 | " -s Make symbolic links instead of hard links\n" \ | 1751 | " -s Make symlinks instead of hardlinks\n" \ |
1747 | " -f Remove existing destination files\n" \ | 1752 | " -f Remove existing destination files\n" \ |
1748 | " -n No dereference symlinks - treat like normal file\n" \ | 1753 | " -n No dereference symlinks - treat like normal file\n" \ |
1749 | " -b Make a backup of the target (if exists) before link operation\n" \ | 1754 | " -b Make a backup of the target (if exists) before link operation\n" \ |
@@ -1849,7 +1854,7 @@ | |||
1849 | USE_FEATURE_LS_FILETYPES( \ | 1854 | USE_FEATURE_LS_FILETYPES( \ |
1850 | "\n -p Append indicator (one of /=@|) to entries") \ | 1855 | "\n -p Append indicator (one of /=@|) to entries") \ |
1851 | USE_FEATURE_LS_FOLLOWLINKS( \ | 1856 | USE_FEATURE_LS_FOLLOWLINKS( \ |
1852 | "\n -L List entries pointed to by symbolic links") \ | 1857 | "\n -L List entries pointed to by symlinks") \ |
1853 | USE_FEATURE_LS_RECURSIVE( \ | 1858 | USE_FEATURE_LS_RECURSIVE( \ |
1854 | "\n -R List subdirectories recursively") \ | 1859 | "\n -R List subdirectories recursively") \ |
1855 | USE_FEATURE_LS_SORTFILES( \ | 1860 | USE_FEATURE_LS_SORTFILES( \ |
@@ -2627,7 +2632,7 @@ | |||
2627 | #define readlink_trivial_usage \ | 2632 | #define readlink_trivial_usage \ |
2628 | USE_FEATURE_READLINK_FOLLOW("[-f] ") "FILE" | 2633 | USE_FEATURE_READLINK_FOLLOW("[-f] ") "FILE" |
2629 | #define readlink_full_usage \ | 2634 | #define readlink_full_usage \ |
2630 | "Display the value of a symbolic link" \ | 2635 | "Display the value of a symlink" \ |
2631 | USE_FEATURE_READLINK_FOLLOW( \ | 2636 | USE_FEATURE_READLINK_FOLLOW( \ |
2632 | "\n\nOptions:\n" \ | 2637 | "\n\nOptions:\n" \ |
2633 | " -f Canonicalize by following all symlinks") | 2638 | " -f Canonicalize by following all symlinks") |
@@ -2994,7 +2999,7 @@ | |||
2994 | " %h Number of hard links\n" \ | 2999 | " %h Number of hard links\n" \ |
2995 | " %i Inode number\n" \ | 3000 | " %i Inode number\n" \ |
2996 | " %n File name\n" \ | 3001 | " %n File name\n" \ |
2997 | " %N Quoted file name with dereference if symbolic link\n" \ | 3002 | " %N Quoted file name with dereference if symlink\n" \ |
2998 | " %o I/O block size\n" \ | 3003 | " %o I/O block size\n" \ |
2999 | " %s Total size, in bytes\n" \ | 3004 | " %s Total size, in bytes\n" \ |
3000 | " %t Major device type in hex\n" \ | 3005 | " %t Major device type in hex\n" \ |