X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fusage.h;h=43b6f70484606f05d1705218c99b0aa3fbf5ecc5;hb=8cbaa450305f771825dc9cd4a326fcec352264d2;hp=291ccb91a7a4ae6f2c301a5c424f2b3c2ba6d6ce;hpb=79c142d93847c168b825858f4e372e10c7e32906;p=oweals%2Fbusybox.git diff --git a/include/usage.h b/include/usage.h index 291ccb91a..43b6f7048 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1193,10 +1193,11 @@ "\t-f\tforce de/configuration" #define inetd_trivial_usage \ - "[-q len] [conf]" + "[-f] [-q len] [conf]" #define inetd_full_usage \ "Listens for network connections and launches programs\n\n" \ "Option:\n" \ + "\t-f\tRun as a foreground progress\n" \ "\t-q\tSets the size of the socket listen queue to\n" \ "\t\tthe specified value. Default is 128" @@ -1497,6 +1498,22 @@ "$ length Hello\n" \ "5\n" +#define less_trivial_usage \ + "[-EMNmh~?] FILE1 FILE2..." +#define less_full_usage \ + "View a file or list of files. The position within files can be\n" \ + "changed, and files can be manipulated in various ways with the\n" \ + "following options:\n\n" \ + "\t-E\tQuit once the end of a file is reached\n" \ + "\t-M\tDisplay a status line containing the current line numbers\n" \ + "\t\tand the percentage through the file\n" \ + "\t-N\tPrefix line numbers to each line\n" \ + "\t-m\tDisplay a status line containing the percentage through the\n" \ + "\t\tfile\n" \ + "\t-~\tSuppress ~s displayed when input past the end of the file is\n" \ + "\t\treached.\n" \ + "\t-h, -?\tDisplay this help message\n" + #define ln_trivial_usage \ "[OPTION] TARGET... LINK_NAME|DIRECTORY" #define ln_full_usage \ @@ -1602,6 +1619,11 @@ #else # define USAGE_AUTOWIDTH(a) #endif +#ifdef CONFIG_FEATURE_LS_COLOR + #define USAGE_LS_COLOR(a) a +#else + #define USAGE_LS_COLOR(a) +#endif #define ls_trivial_usage \ "[-1Aa" USAGE_LS_TIMESTAMPS("c") "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h") USAGE_NOT_HUMAN_READABLE("") "k" USAGE_SELINUX("K") "] [filenames...]" @@ -1613,6 +1635,7 @@ "\t-a\tdo not hide entries starting with .\n" \ "\t-C\tlist entries by columns\n" \ USAGE_LS_TIMESTAMPS("\t-c\twith -l: show ctime\n") \ + USAGE_LS_COLOR("\t--color[={always,never,auto}]\tto control coloring\n") \ "\t-d\tlist directory entries instead of contents\n" \ USAGE_LS_TIMESTAMPS("\t-e\tlist both full date and full time\n") \ USAGE_LS_FILETYPES("\t-F\tappend indicator (one of */=@|) to entries\n") \ @@ -1915,6 +1938,20 @@ "$ mount /dev/fd0 /mnt -t msdos -o ro\n" \ "$ mount /tmp/diskimage /opt -t ext2 -o loop\n" +#define mountpoint_trivial_usage \ + "[-q] <[-d] DIR | -x DEVICE>" +#define mountpoint_full_usage \ + "mountpoint checks if the directory is a mountpoint\n\n" \ + "Options:\n" \ + "\t-q:\t\tBe more quiet\n" \ + "\t-d:\t\tPrint major/minor device number of the filesystem\n" \ + "\t-x:\t\tPrint major/minor device number of the blockdevice" +#define mountpoint_example_usage \ + "$ mountpoint /proc\n" \ + "/proc is not a mountpoint\n" \ + "$ mountpoint /sys\n" \ + "/sys is a mountpoint\n" + #define mt_trivial_usage \ "[-f device] opcode value" #define mt_full_usage \ @@ -2043,11 +2080,13 @@ "\t-u\tUnlocks (re-enables) the specified user account" #define patch_trivial_usage \ - "[-p]" + "[-p] [-i]" #define patch_full_usage \ - "[-p]" + "[-p]\n" \ + "[-i]" #define patch_example_usage \ - "$ patch -p1 \t(default /etc/sysctl.conf)\n" \ "sysctl [-n] -A\n" -#endif #define syslogd_trivial_usage \ "[OPTION]..." @@ -2885,12 +2935,16 @@ "hello world\n" #define traceroute_trivial_usage \ - "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n" \ - "\t[-s src_addr] [-t tos] [-w wait] host [data size]" + "[-FIldnrv] [-f 1st_ttl] [-m max_ttl] [-p port#] [-q nqueries]\n" \ + "\t[-s src_addr] [-t tos] [-w wait] [-g gateway] [-i iface]\n" \ + "\t[-z pausemsecs] host [data size]" #define traceroute_full_usage \ "trace the route ip packets follow going to \"host\"\n" \ "Options:\n" \ - "\t-d\tset SO_DEBUG options to socket\n" \ + "\t-F\tSet the don't fragment bit\n" \ + "\t-I\tUse ICMP ECHO instead of UDP datagrams\n" \ + "\t-l\tDisplay the ttl value of the returned packet\n" \ + "\t-d\tSet SO_DEBUG options to socket\n" \ "\t-n\tPrint hop addresses numerically rather than symbolically\n" \ "\t-r\tBypass the normal routing tables and send directly to a host\n" \ "\t-v\tVerbose output\n" \ @@ -2903,7 +2957,8 @@ "\t-t tos\tSet the type-of-service in probe packets to the following value\n" \ "\t\t(default 0)\n" \ "\t-w wait\tSet the time (in seconds) to wait for a response to a probe\n" \ - "\t\t(default 3 sec.)" + "\t\t(default 3 sec.)\n" \ + "\t-g\tSpecify a loose source route gateway (8 maximum)" #define true_trivial_usage \ @@ -3000,7 +3055,7 @@ "\t-f\tforce overwrite an existing file" #define uniq_trivial_usage \ - "[OPTION]... [INPUT [OUTPUT]]" + "[-fscdu]... [INPUT [OUTPUT]]" #define uniq_full_usage \ "Discard all but one of successive identical lines from INPUT\n" \ "(or standard input), writing to OUTPUT (or standard output).\n\n" \