From 14b0f4feb3648378acb5eba12c8fcd8fa291b231 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 5 Dec 2009 02:44:34 +0100 Subject: trim usage text. -238 bytes Signed-off-by: Denys Vlasenko --- include/usage.h | 118 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 60 insertions(+), 58 deletions(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index 6978bb6e9..2eb5c007a 100644 --- a/include/usage.h +++ b/include/usage.h @@ -145,7 +145,7 @@ "bar" #define beep_trivial_usage \ - "-f freq -l length -d delay -r repetitions -n" + "-f FREQ -l LEN -d DELAY -r COUNT -n" #define beep_full_usage "\n\n" \ "Options:" \ "\n -f Frequency in Hz" \ @@ -614,13 +614,13 @@ "Crypt the PASSWORD using crypt(3)\n" \ "\nOptions:" \ IF_LONG_OPTS( \ - "\n -P,--password-fd=NUM Read password from fd NUM" \ + "\n -P,--password-fd=N Read password from fd N" \ /* "\n -s,--stdin Use stdin; like -P0" */ \ "\n -m,--method=TYPE Encryption method TYPE" \ "\n -S,--salt=SALT" \ ) \ IF_NOT_LONG_OPTS( \ - "\n -P NUM Read password from fd NUM" \ + "\n -P N Read password from fd N" \ /* "\n -s Use stdin; like -P0" */ \ "\n -m TYPE Encryption method TYPE" \ "\n -S SALT" \ @@ -635,13 +635,13 @@ "Crypt the PASSWORD using crypt(3)\n" \ "\nOptions:" \ IF_LONG_OPTS( \ - "\n -P,--password-fd=NUM Read password from fd NUM" \ + "\n -P,--password-fd=N Read password from fd N" \ /* "\n -s,--stdin Use stdin; like -P0" */ \ "\n -m,--method=TYPE Encryption method TYPE" \ "\n -S,--salt=SALT" \ ) \ IF_NOT_LONG_OPTS( \ - "\n -P NUM Read password from fd NUM" \ + "\n -P N Read password from fd N" \ /* "\n -s Use stdin; like -P0" */ \ "\n -m TYPE Encryption method TYPE" \ "\n -S SALT" \ @@ -1002,6 +1002,7 @@ "\n -a Interpret lease times as expire time" \ ) +/* #define e2fsck_trivial_usage \ "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \ "[-I inode_buffer_blocks] [-P process_inode_size] " \ @@ -1021,6 +1022,7 @@ "\n -j journal Set location of the external journal" \ "\n -l file Add to badblocks list" \ "\n -L file Set badblocks list" \ +*/ #define echo_trivial_usage \ IF_FEATURE_FANCY_ECHO("[-neE] ") "[ARG...]" @@ -1077,7 +1079,7 @@ "\n -p pass Append four or six byte password PW to the packet" \ #define expand_trivial_usage \ - "[-i] [-t NUM] [FILE|-]" + "[-i] [-t N] [FILE|-]" #define expand_full_usage "\n\n" \ "Convert tabs to spaces, writing to standard output\n" \ "\nOptions:" \ @@ -1513,7 +1515,7 @@ "\n -s Suppress file open/read error messages" \ "\n -c Only print count of matching lines" \ "\n -o Show only the part of a line that matches PATTERN" \ - "\n -m MAX Match up to MAX times per file" \ + "\n -m N Match up to N times per file" \ IF_DESKTOP( \ "\n -w Match whole words only") \ "\n -F PATTERN is a set of newline-separated strings" \ @@ -1522,9 +1524,9 @@ "\n -e PTRN Pattern to match" \ "\n -f FILE Read pattern from file" \ IF_FEATURE_GREP_CONTEXT( \ - "\n -A Print NUM lines of trailing context" \ - "\n -B Print NUM lines of leading context" \ - "\n -C Print NUM lines of output context") \ + "\n -A N Print N lines of trailing context" \ + "\n -B N Print N lines of leading context" \ + "\n -C N Print N lines of output context") \ IF_EXTRA_COMPAT( \ "\n -z Input is NUL terminated") \ @@ -1573,7 +1575,7 @@ "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n" #define halt_trivial_usage \ - "[-d delay] [-n] [-f]" IF_FEATURE_WTMP(" [-w]") + "[-d DELAY] [-n] [-f]" IF_FEATURE_WTMP(" [-w]") #define halt_full_usage "\n\n" \ "Halt the system\n" \ "\nOptions:" \ @@ -1641,9 +1643,9 @@ "Print first 10 lines of each FILE (or standard input) to standard output.\n" \ "With more than one FILE, precede each with a header giving the file name.\n" \ "\nOptions:" \ - "\n -n NUM Print first NUM lines instead of first 10" \ + "\n -n N Print first N lines instead of first 10" \ IF_FEATURE_FANCY_HEAD( \ - "\n -c NUM Output the first NUM bytes" \ + "\n -c N Output the first N bytes" \ "\n -q Never output headers giving file names" \ "\n -v Always output headers giving file names") \ @@ -2463,7 +2465,7 @@ "\n -S Sort by file size") \ "\n -s List the size of each file, in blocks" \ IF_FEATURE_AUTOWIDTH( \ - "\n -T NUM Assume tabstop every NUM columns") \ + "\n -T N Assume tabstop every N columns") \ IF_FEATURE_LS_TIMESTAMPS( \ "\n -t With -l: sort by modification time") \ IF_FEATURE_LS_TIMESTAMPS( \ @@ -2471,7 +2473,7 @@ IF_FEATURE_LS_SORTFILES( \ "\n -v Sort by version") \ IF_FEATURE_AUTOWIDTH( \ - "\n -w NUM Assume the terminal is NUM columns wide") \ + "\n -w N Assume the terminal is N columns wide") \ "\n -x List by lines" \ IF_FEATURE_LS_SORTFILES( \ "\n -X Sort by extension") \ @@ -2748,7 +2750,7 @@ /* "\n -E opts Set extended options" */ \ /* "\n -f size Fragment size in bytes" */ \ "\n -F Force" \ -/* "\n -g num Number of blocks in a block group" */ \ +/* "\n -g N Number of blocks in a block group" */ \ "\n -i RATIO Max number of files is filesystem_size / RATIO" \ "\n -I BYTES Inode size (min 128)" \ /* "\n -j Create a journal (ext3)" */ \ @@ -2758,7 +2760,7 @@ "\n -m PERCENT Percent of blocks to reserve for admin" \ /* "\n -M dir Set last mounted directory" */ \ "\n -n Dry run" \ -/* "\n -N num Number of inodes to create" */ \ +/* "\n -N N Number of inodes to create" */ \ /* "\n -o os Set the 'creator os' field" */ \ /* "\n -O features Dir_index/filetype/has_journal/journal_dev/sparse_super" */ \ /* "\n -q Quiet" */ \ @@ -2946,7 +2948,7 @@ "$ dmesg | more\n" #define mount_trivial_usage \ - "[flags] DEVICE NODE [-o OPT,OPT]" + "[OPTIONS] [-o OPTS] DEVICE NODE" #define mount_full_usage "\n\n" \ "Mount a filesystem. Filesystem autodetection requires /proc.\n" \ "\nOptions:" \ @@ -2985,14 +2987,13 @@ "\n [r]slave Convert [recursively] to a slave subtree" \ "\n [r]private Convert [recursively] to a private subtree" \ "\n [un]bindable Make mount point [un]able to be bind mounted" \ - "\n bind Bind a directory to an additional location" \ + "\n bind Bind a file or directory to another location" \ "\n move Relocate an existing mount point" \ ) \ - "\n remount Remount a mounted filesystem, changing its flags" \ - "\n ro/rw Read-only/read-write mount" \ + "\n remount Remount a mounted filesystem, changing flags" \ + "\n ro/rw Same as -r/-w" \ "\n" \ - "\nThere are EVEN MORE flags that are specific to each filesystem" \ - "\nYou'll have to see the written documentation for those filesystems" \ + "\nThere are filesystem-specific -o flags." \ #define mount_example_usage \ "$ mount\n" \ @@ -3243,10 +3244,11 @@ #define openvt_example_usage \ "openvt 2 /bin/ash\n" +/* #define parse_trivial_usage \ - "[-n maxtokens] [-m mintokens] [-d delims] [-f flags] file ..." -#define parse_full_usage "\n\n" \ - "[-n maxtokens] [-m mintokens] [-d delims] [-f flags] file ..." + "[-n MAXTOKENS] [-m MINTOKENS] [-d DELIMS] [-f FLAGS] FILE..." +#define parse_full_usage "" +*/ #define passwd_trivial_usage \ "[OPTIONS] [USER]" @@ -3254,7 +3256,7 @@ "Change USER's password. If no USER is specified,\n" \ "changes the password for the current user.\n" \ "\nOptions:" \ - "\n -a Algorithm to use for password (choices: des, md5)" /* ", sha1)" */ \ + "\n -a Algorithm to use for password (des, md5)" /* ", sha1)" */ \ "\n -d Delete password for the account" \ "\n -l Lock (disable) account" \ "\n -u Unlock (re-enable) account" \ @@ -3277,14 +3279,14 @@ "[OPTIONS] [ORIGFILE [PATCHFILE]]" #define patch_full_usage "\n\n" \ IF_LONG_OPTS( \ - " -p,--strip NUM Strip NUM leading components from file names" \ + " -p,--strip N Strip N leading components from file names" \ "\n -i,--input DIFF Read DIFF instead of stdin" \ "\n -R,--reverse Reverse patch" \ "\n -N,--forward Ignore already applied patches" \ "\n --dry-run Don't actually change files" \ ) \ IF_NOT_LONG_OPTS( \ - " -p NUM Strip NUM leading components from file names" \ + " -p N Strip N leading components from file names" \ "\n -i DIFF Read DIFF instead of stdin" \ "\n -R Reverse patch" \ "\n -N Ignore already applied patches" \ @@ -3413,34 +3415,34 @@ "\n -P Match parent process ID" \ #define popmaildir_trivial_usage \ - "[OPTIONS] Maildir [connection-helper ...]" + "[OPTIONS] MAILDIR [CONN_HELPER ARGS]" #define popmaildir_full_usage "\n\n" \ "Fetch content of remote mailbox to local maildir\n" \ "\nOptions:" \ - "\n -b Binary mode. Ignored" \ - "\n -d Debug. Ignored" \ - "\n -m Show used memory. Ignored" \ - "\n -V Show version. Ignored" \ - "\n -c Use tcpclient. Ignored" \ - "\n -a Use APOP protocol. Implied. If server supports APOP -> use it" \ +/* "\n -b Binary mode. Ignored" */ \ +/* "\n -d Debug. Ignored" */ \ +/* "\n -m Show used memory. Ignored" */ \ +/* "\n -V Show version. Ignored" */ \ +/* "\n -c Use tcpclient. Ignored" */ \ +/* "\n -a Use APOP protocol. Implied. If server supports APOP -> use it" */ \ "\n -s Skip authorization" \ "\n -T Get messages with TOP instead with RETR" \ "\n -k Keep retrieved messages on the server" \ - "\n -t timeout Network timeout" \ + "\n -t SEC Network timeout" \ IF_FEATURE_POPMAILDIR_DELIVERY( \ - "\n -F \"program arg1 arg2 ...\" Filter by program. May be multiple" \ - "\n -M \"program arg1 arg2 ...\" Deliver by program" \ + "\n -F \"PROG ARGS\" Filter program. May be multiple" \ + "\n -M \"PROG ARGS\" Delivery program" \ ) \ - "\n -R size Remove old messages on the server >= size (in bytes). Ignored" \ - "\n -Z N1-N2 Remove messages from N1 to N2 (dangerous). Ignored" \ - "\n -L size Don't retrieve new messages >= size (in bytes). Ignored" \ - "\n -H lines Type specified number of lines of a message. Ignored" +/* "\n -R BYTES Remove old messages on the server >= BYTES. Ignored" */ +/* "\n -Z N1-N2 Remove messages from N1 to N2 (dangerous). Ignored" */ +/* "\n -L BYTES Don't retrieve new messages >= BYTES. Ignored" */ +/* "\n -H LINES Type first LINES of a message. Ignored" */ #define popmaildir_example_usage \ "$ popmaildir -k ~/Maildir -- nc pop.drvv.ru 110 [