diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-15 22:30:30 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-15 22:30:30 +0100 |
commit | d084cb9dc70bfe4a56c2b4b83801ef8d991725f4 (patch) | |
tree | 8585273e89e76f05d0b3923748b131e34004b335 | |
parent | a40f0624db4c9490d46f116c4c4635dfa68e070c (diff) | |
download | busybox-w32-d084cb9dc70bfe4a56c2b4b83801ef8d991725f4.tar.gz busybox-w32-d084cb9dc70bfe4a56c2b4b83801ef8d991725f4.tar.bz2 busybox-w32-d084cb9dc70bfe4a56c2b4b83801ef8d991725f4.zip |
trim usage text a bit; fix cp usage (meaning of -H option)
function old new delta
packed_usage 26596 26540 -56
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/usage.h | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/include/usage.h b/include/usage.h index 77bc3b167..168d6e1e5 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -311,7 +311,7 @@ | |||
311 | "\n t Disable tail-merging of partial blocks with other files" \ | 311 | "\n t Disable tail-merging of partial blocks with other files" \ |
312 | "\n u Allow file to be undeleted" \ | 312 | "\n u Allow file to be undeleted" \ |
313 | "\nOptions:" \ | 313 | "\nOptions:" \ |
314 | "\n -R Recursively list subdirectories" \ | 314 | "\n -R Recurse" \ |
315 | "\n -v Set the file's version/generation number" \ | 315 | "\n -v Set the file's version/generation number" \ |
316 | 316 | ||
317 | #define chcon_trivial_usage \ | 317 | #define chcon_trivial_usage \ |
@@ -531,10 +531,10 @@ | |||
531 | #define chrt_full_usage "\n\n" \ | 531 | #define chrt_full_usage "\n\n" \ |
532 | "Manipulate real-time attributes of a process\n" \ | 532 | "Manipulate real-time attributes of a process\n" \ |
533 | "\nOptions:" \ | 533 | "\nOptions:" \ |
534 | "\n -p Operate on pid" \ | 534 | "\n -p Operate on PID" \ |
535 | "\n -r Set scheduling policy to SCHED_RR" \ | 535 | "\n -r Set SCHED_RR scheduling" \ |
536 | "\n -f Set scheduling policy to SCHED_FIFO" \ | 536 | "\n -f Set SCHED_FIFO scheduling" \ |
537 | "\n -o Set scheduling policy to SCHED_OTHER" \ | 537 | "\n -o Set SCHED_OTHER scheduling" \ |
538 | "\n -m Show min and max priorities" \ | 538 | "\n -m Show min and max priorities" \ |
539 | 539 | ||
540 | #define chrt_example_usage \ | 540 | #define chrt_example_usage \ |
@@ -551,12 +551,13 @@ | |||
551 | IF_SELINUX( \ | 551 | IF_SELINUX( \ |
552 | "\n -c Preserve security context" \ | 552 | "\n -c Preserve security context" \ |
553 | ) \ | 553 | ) \ |
554 | "\n -d,-P Preserve links" \ | 554 | "\n -R,-r Recurse" \ |
555 | "\n -H,-L Dereference all symlinks (default)" \ | 555 | "\n -d,-P Preserve symlinks (default if -R)" \ |
556 | "\n -L Follow all symlinks" \ | ||
557 | "\n -H Follow symlinks on command line" \ | ||
556 | "\n -p Preserve file attributes if possible" \ | 558 | "\n -p Preserve file attributes if possible" \ |
557 | "\n -f Force overwrite" \ | 559 | "\n -f Force overwrite" \ |
558 | "\n -i Prompt before overwrite" \ | 560 | "\n -i Prompt before overwrite" \ |
559 | "\n -R,-r Recurse" \ | ||
560 | "\n -l,-s Create (sym)links" \ | 561 | "\n -l,-s Create (sym)links" \ |
561 | 562 | ||
562 | #define cpio_trivial_usage \ | 563 | #define cpio_trivial_usage \ |
@@ -863,7 +864,7 @@ | |||
863 | "\n -L Use LABEL instead of the filename in the unified header" \ | 864 | "\n -L Use LABEL instead of the filename in the unified header" \ |
864 | "\n -N Treat absent files as empty" \ | 865 | "\n -N Treat absent files as empty" \ |
865 | "\n -q Output only whether files differ" \ | 866 | "\n -q Output only whether files differ" \ |
866 | "\n -r Recursively compare subdirectories" \ | 867 | "\n -r Recurse" \ |
867 | "\n -S Start with FILE when comparing directories" \ | 868 | "\n -S Start with FILE when comparing directories" \ |
868 | "\n -T Make tabs line up by prefixing a tab when necessary" \ | 869 | "\n -T Make tabs line up by prefixing a tab when necessary" \ |
869 | "\n -s Report when two files are the same" \ | 870 | "\n -s Report when two files are the same" \ |
@@ -956,8 +957,8 @@ | |||
956 | " bytes.\n" \ | 957 | " bytes.\n" \ |
957 | "\nOptions:" \ | 958 | "\nOptions:" \ |
958 | "\n -a Show file sizes too" \ | 959 | "\n -a Show file sizes too" \ |
959 | "\n -H Follow symlinks on command line" \ | ||
960 | "\n -L Follow all symlinks" \ | 960 | "\n -L Follow all symlinks" \ |
961 | "\n -H Follow symlinks on command line" \ | ||
961 | "\n -d N Limit output to directories (and files with -a) of depth < N" \ | 962 | "\n -d N Limit output to directories (and files with -a) of depth < N" \ |
962 | "\n -c Show grand total" \ | 963 | "\n -c Show grand total" \ |
963 | "\n -l Count sizes many times if hard linked" \ | 964 | "\n -l Count sizes many times if hard linked" \ |
@@ -1219,7 +1220,7 @@ | |||
1219 | "Search for files. The default PATH is the current directory,\n" \ | 1220 | "Search for files. The default PATH is the current directory,\n" \ |
1220 | "default EXPRESSION is '-print'\n" \ | 1221 | "default EXPRESSION is '-print'\n" \ |
1221 | "\nEXPRESSION may consist of:" \ | 1222 | "\nEXPRESSION may consist of:" \ |
1222 | "\n -follow Dereference symlinks" \ | 1223 | "\n -follow Follow symlinks" \ |
1223 | IF_FEATURE_FIND_XDEV( \ | 1224 | IF_FEATURE_FIND_XDEV( \ |
1224 | "\n -xdev Don't descend directories on other filesystems") \ | 1225 | "\n -xdev Don't descend directories on other filesystems") \ |
1225 | IF_FEATURE_FIND_MAXDEPTH( \ | 1226 | IF_FEATURE_FIND_MAXDEPTH( \ |
@@ -1630,7 +1631,7 @@ | |||
1630 | "\n -T Perform cache read timings" \ | 1631 | "\n -T Perform cache read timings" \ |
1631 | "\n -u Get/set unmaskirq flag (0/1)" \ | 1632 | "\n -u Get/set unmaskirq flag (0/1)" \ |
1632 | IF_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF( \ | 1633 | IF_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF( \ |
1633 | "\n -U Un-register an IDE interface (DANGEROUS)") \ | 1634 | "\n -U Unregister an IDE interface (DANGEROUS)") \ |
1634 | "\n -v Defaults; same as -mcudkrag for IDE drives" \ | 1635 | "\n -v Defaults; same as -mcudkrag for IDE drives" \ |
1635 | "\n -V Display program version and exit immediately" \ | 1636 | "\n -V Display program version and exit immediately" \ |
1636 | IF_FEATURE_HDPARM_HDIO_DRIVE_RESET( \ | 1637 | IF_FEATURE_HDPARM_HDIO_DRIVE_RESET( \ |
@@ -1642,7 +1643,7 @@ | |||
1642 | "\n -y Put IDE drive in standby mode" \ | 1643 | "\n -y Put IDE drive in standby mode" \ |
1643 | "\n -Y Put IDE drive to sleep" \ | 1644 | "\n -Y Put IDE drive to sleep" \ |
1644 | "\n -Z Disable Seagate auto-powersaving mode" \ | 1645 | "\n -Z Disable Seagate auto-powersaving mode" \ |
1645 | "\n -z Re-read partition table" \ | 1646 | "\n -z Reread partition table" \ |
1646 | 1647 | ||
1647 | #define head_trivial_usage \ | 1648 | #define head_trivial_usage \ |
1648 | "[OPTIONS] [FILE]..." | 1649 | "[OPTIONS] [FILE]..." |
@@ -2311,12 +2312,12 @@ | |||
2311 | " linux64 Set 64bit uname emulation" \ | 2312 | " linux64 Set 64bit uname emulation" \ |
2312 | 2313 | ||
2313 | #define ln_trivial_usage \ | 2314 | #define ln_trivial_usage \ |
2314 | "[OPTIONS] TARGET... LINK|DIRECTORY" | 2315 | "[OPTIONS] TARGET... LINK|DIR" |
2315 | #define ln_full_usage "\n\n" \ | 2316 | #define ln_full_usage "\n\n" \ |
2316 | "Create a link LINK or DIRECTORY/TARGET to the specified TARGET(s)\n" \ | 2317 | "Create a link LINK or DIR/TARGET to the specified TARGET(s)\n" \ |
2317 | "\nOptions:" \ | 2318 | "\nOptions:" \ |
2318 | "\n -s Make symlinks instead of hardlinks" \ | 2319 | "\n -s Make symlinks instead of hardlinks" \ |
2319 | "\n -f Remove existing destination files" \ | 2320 | "\n -f Remove existing destinations" \ |
2320 | "\n -n Don't dereference symlinks - treat like normal file" \ | 2321 | "\n -n Don't dereference symlinks - treat like normal file" \ |
2321 | "\n -b Make a backup of the target (if exists) before link operation" \ | 2322 | "\n -b Make a backup of the target (if exists) before link operation" \ |
2322 | "\n -S suf Use suffix instead of ~ when making backup files" \ | 2323 | "\n -S suf Use suffix instead of ~ when making backup files" \ |
@@ -2465,7 +2466,7 @@ | |||
2465 | IF_FEATURE_LS_FOLLOWLINKS( \ | 2466 | IF_FEATURE_LS_FOLLOWLINKS( \ |
2466 | "\n -L List entries pointed to by symlinks") \ | 2467 | "\n -L List entries pointed to by symlinks") \ |
2467 | IF_FEATURE_LS_RECURSIVE( \ | 2468 | IF_FEATURE_LS_RECURSIVE( \ |
2468 | "\n -R List subdirectories recursively") \ | 2469 | "\n -R Recurse") \ |
2469 | IF_FEATURE_LS_SORTFILES( \ | 2470 | IF_FEATURE_LS_SORTFILES( \ |
2470 | "\n -r Sort in reverse order") \ | 2471 | "\n -r Sort in reverse order") \ |
2471 | IF_FEATURE_LS_SORTFILES( \ | 2472 | IF_FEATURE_LS_SORTFILES( \ |
@@ -2498,7 +2499,7 @@ | |||
2498 | #define lsattr_full_usage "\n\n" \ | 2499 | #define lsattr_full_usage "\n\n" \ |
2499 | "List file attributes on an ext2 fs\n" \ | 2500 | "List file attributes on an ext2 fs\n" \ |
2500 | "\nOptions:" \ | 2501 | "\nOptions:" \ |
2501 | "\n -R Recursively list subdirectories" \ | 2502 | "\n -R Recurse" \ |
2502 | "\n -a Don't hide entries starting with ." \ | 2503 | "\n -a Don't hide entries starting with ." \ |
2503 | "\n -d List directory entries instead of contents" \ | 2504 | "\n -d List directory entries instead of contents" \ |
2504 | "\n -l List long flag names" \ | 2505 | "\n -l List long flag names" \ |
@@ -3680,7 +3681,7 @@ | |||
3680 | "\nOptions:" \ | 3681 | "\nOptions:" \ |
3681 | "\n -i Always prompt before removing" \ | 3682 | "\n -i Always prompt before removing" \ |
3682 | "\n -f Never prompt" \ | 3683 | "\n -f Never prompt" \ |
3683 | "\n -r,-R Remove directories recursively" \ | 3684 | "\n -R,-r Recurse" \ |
3684 | 3685 | ||
3685 | #define rm_example_usage \ | 3686 | #define rm_example_usage \ |
3686 | "$ rm -rf /tmp/foo\n" | 3687 | "$ rm -rf /tmp/foo\n" |
@@ -3688,7 +3689,7 @@ | |||
3688 | #define rmdir_trivial_usage \ | 3689 | #define rmdir_trivial_usage \ |
3689 | "[OPTIONS] DIRECTORY..." | 3690 | "[OPTIONS] DIRECTORY..." |
3690 | #define rmdir_full_usage "\n\n" \ | 3691 | #define rmdir_full_usage "\n\n" \ |
3691 | "Remove the DIRECTORY, if it is empty\n" \ | 3692 | "Remove DIRECTORY if it is empty\n" \ |
3692 | "\nOptions:" \ | 3693 | "\nOptions:" \ |
3693 | IF_FEATURE_RMDIR_LONG_OPTIONS( \ | 3694 | IF_FEATURE_RMDIR_LONG_OPTIONS( \ |
3694 | "\n -p|--parents Include parents" \ | 3695 | "\n -p|--parents Include parents" \ |
@@ -3787,7 +3788,7 @@ | |||
3787 | #define run_parts_trivial_usage \ | 3788 | #define run_parts_trivial_usage \ |
3788 | "[-t] "IF_FEATURE_RUN_PARTS_FANCY("[-l] ")"[-a ARG] [-u MASK] DIRECTORY" | 3789 | "[-t] "IF_FEATURE_RUN_PARTS_FANCY("[-l] ")"[-a ARG] [-u MASK] DIRECTORY" |
3789 | #define run_parts_full_usage "\n\n" \ | 3790 | #define run_parts_full_usage "\n\n" \ |
3790 | "Run a bunch of scripts in a directory\n" \ | 3791 | "Run a bunch of scripts in DIRECTORY\n" \ |
3791 | "\nOptions:" \ | 3792 | "\nOptions:" \ |
3792 | "\n -t Print what would be run, but don't actually run anything" \ | 3793 | "\n -t Print what would be run, but don't actually run anything" \ |
3793 | "\n -a ARG Pass ARG as argument for every program" \ | 3794 | "\n -a ARG Pass ARG as argument for every program" \ |
@@ -3929,7 +3930,7 @@ | |||
3929 | #define setenforce_full_usage "" | 3930 | #define setenforce_full_usage "" |
3930 | 3931 | ||
3931 | #define setfiles_trivial_usage \ | 3932 | #define setfiles_trivial_usage \ |
3932 | "[-dnpqsvW] [-e dir]... [-o file] [-r alt_root_path]" \ | 3933 | "[-dnpqsvW] [-e DIR]... [-o FILE] [-r alt_root_path]" \ |
3933 | IF_FEATURE_SETFILES_CHECK_OPTION( \ | 3934 | IF_FEATURE_SETFILES_CHECK_OPTION( \ |
3934 | " [-c policyfile] spec_file" \ | 3935 | " [-c policyfile] spec_file" \ |
3935 | ) \ | 3936 | ) \ |
@@ -3937,16 +3938,16 @@ | |||
3937 | #define setfiles_full_usage "\n\n" \ | 3938 | #define setfiles_full_usage "\n\n" \ |
3938 | "Reset file contexts under pathname according to spec_file\n" \ | 3939 | "Reset file contexts under pathname according to spec_file\n" \ |
3939 | IF_FEATURE_SETFILES_CHECK_OPTION( \ | 3940 | IF_FEATURE_SETFILES_CHECK_OPTION( \ |
3940 | "\n -c file Check the validity of the contexts against the specified binary policy" \ | 3941 | "\n -c FILE Check the validity of the contexts against the specified binary policy" \ |
3941 | ) \ | 3942 | ) \ |
3942 | "\n -d Show which specification matched each file" \ | 3943 | "\n -d Show which specification matched each file" \ |
3943 | "\n -l Log changes in file labels to syslog" \ | 3944 | "\n -l Log changes in file labels to syslog" \ |
3944 | "\n -n Don't change any file labels" \ | 3945 | "\n -n Don't change any file labels" \ |
3945 | "\n -q Suppress warnings" \ | 3946 | "\n -q Suppress warnings" \ |
3946 | "\n -r dir Use an alternate root path" \ | 3947 | "\n -r DIR Use an alternate root path" \ |
3947 | "\n -e dir Exclude directory" \ | 3948 | "\n -e DIR Exclude DIR" \ |
3948 | "\n -F Force reset of context to match file_context for customizable files" \ | 3949 | "\n -F Force reset of context to match file_context for customizable files" \ |
3949 | "\n -o file Save list of files with incorrect context" \ | 3950 | "\n -o FILE Save list of files with incorrect context" \ |
3950 | "\n -s Take a list of files from standard input (instead of command line)" \ | 3951 | "\n -s Take a list of files from standard input (instead of command line)" \ |
3951 | "\n -v Show changes in file labels, if type or role are changing" \ | 3952 | "\n -v Show changes in file labels, if type or role are changing" \ |
3952 | "\n -vv Show changes in file labels, if type, role, or user are changing" \ | 3953 | "\n -vv Show changes in file labels, if type, role, or user are changing" \ |
@@ -4172,7 +4173,7 @@ | |||
4172 | "\n -c fmt Use the specified format" \ | 4173 | "\n -c fmt Use the specified format" \ |
4173 | ) \ | 4174 | ) \ |
4174 | "\n -f Display filesystem status" \ | 4175 | "\n -f Display filesystem status" \ |
4175 | "\n -L Dereference links" \ | 4176 | "\n -L Follow links" \ |
4176 | "\n -t Display info in terse form" \ | 4177 | "\n -t Display info in terse form" \ |
4177 | IF_SELINUX( \ | 4178 | IF_SELINUX( \ |
4178 | "\n -Z Print security context" \ | 4179 | "\n -Z Print security context" \ |
@@ -4192,7 +4193,7 @@ | |||
4192 | " %h Number of hard links\n" \ | 4193 | " %h Number of hard links\n" \ |
4193 | " %i Inode number\n" \ | 4194 | " %i Inode number\n" \ |
4194 | " %n File name\n" \ | 4195 | " %n File name\n" \ |
4195 | " %N Quoted file name with dereference if symlink\n" \ | 4196 | " %N File name, with -> TARGET if symlink\n" \ |
4196 | " %o I/O block size\n" \ | 4197 | " %o I/O block size\n" \ |
4197 | " %s Total size, in bytes\n" \ | 4198 | " %s Total size, in bytes\n" \ |
4198 | " %t Major device type in hex\n" \ | 4199 | " %t Major device type in hex\n" \ |
@@ -5003,7 +5004,7 @@ | |||
5003 | IF_FEATURE_VI_COLON( \ | 5004 | IF_FEATURE_VI_COLON( \ |
5004 | "\n -c Initial command to run ($EXINIT also available)") \ | 5005 | "\n -c Initial command to run ($EXINIT also available)") \ |
5005 | IF_FEATURE_VI_READONLY( \ | 5006 | IF_FEATURE_VI_READONLY( \ |
5006 | "\n -R Read-only - don't write to the file") \ | 5007 | "\n -R Read-only") \ |
5007 | "\n -H Short help regarding available features" \ | 5008 | "\n -H Short help regarding available features" \ |
5008 | 5009 | ||
5009 | #define vlock_trivial_usage \ | 5010 | #define vlock_trivial_usage \ |