*: more --help tweaks, mostly expanding ts --help

function                                             old     new   delta
packed_usage                                       33554   33596     +42

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2021-06-13 03:12:09 +02:00
parent 6b6826f0b8
commit 1849285a20
8 changed files with 18 additions and 15 deletions

View File

@ -775,7 +775,7 @@ static llist_t *append_file_list_to_list(llist_t *list)
//usage: IF_FEATURE_TAR_NOPRESERVE_TIME("m") //usage: IF_FEATURE_TAR_NOPRESERVE_TIME("m")
//usage: "vokO] " //usage: "vokO] "
//usage: "[-f TARFILE] [-C DIR] " //usage: "[-f TARFILE] [-C DIR] "
//usage: IF_FEATURE_TAR_FROM("[-T FILE] [-X FILE] "IF_FEATURE_TAR_LONG_OPTIONS("[OPTION]... ")) //usage: IF_FEATURE_TAR_FROM("[-T FILE] [-X FILE] "IF_FEATURE_TAR_LONG_OPTIONS("[LONGOPT]... "))
//usage: "[FILE]..." //usage: "[FILE]..."
//usage:#define tar_full_usage "\n\n" //usage:#define tar_full_usage "\n\n"
//usage: IF_FEATURE_TAR_CREATE("Create, extract, ") //usage: IF_FEATURE_TAR_CREATE("Create, extract, ")

View File

@ -31,7 +31,7 @@
//kbuild:lib-$(CONFIG_TOUCH) += touch.o //kbuild:lib-$(CONFIG_TOUCH) += touch.o
//usage:#define touch_trivial_usage //usage:#define touch_trivial_usage
//usage: "[-c" IF_FEATURE_TOUCH_SUSV3("am") "]" //usage: "[-ch" IF_FEATURE_TOUCH_SUSV3("am") "]"
//usage: IF_FEATURE_TOUCH_SUSV3(" [-d DATE] [-t DATE] [-r FILE]") //usage: IF_FEATURE_TOUCH_SUSV3(" [-d DATE] [-t DATE] [-r FILE]")
//usage: " FILE..." //usage: " FILE..."
//usage:#define touch_full_usage "\n\n" //usage:#define touch_full_usage "\n\n"

View File

@ -21,7 +21,7 @@
/* http://www.opengroup.org/onlinepubs/9699919799/utilities/tty.html */ /* http://www.opengroup.org/onlinepubs/9699919799/utilities/tty.html */
//usage:#define tty_trivial_usage //usage:#define tty_trivial_usage
//usage: "" //usage: "" IF_INCLUDE_SUSv2("[-s]")
//usage:#define tty_full_usage "\n\n" //usage:#define tty_full_usage "\n\n"
//usage: "Print file name of stdin's terminal" //usage: "Print file name of stdin's terminal"
//usage: IF_INCLUDE_SUSv2( "\n" //usage: IF_INCLUDE_SUSv2( "\n"

View File

@ -79,13 +79,13 @@
//usage:#define uname_full_usage "\n\n" //usage:#define uname_full_usage "\n\n"
//usage: "Print system information\n" //usage: "Print system information\n"
//usage: "\n -a Print all" //usage: "\n -a Print all"
//usage: "\n -m The machine (hardware) type" //usage: "\n -m Machine (hardware) type"
//usage: "\n -n Hostname" //usage: "\n -n Hostname"
//usage: "\n -r Kernel release" //usage: "\n -r Kernel release"
//usage: "\n -s Kernel name (default)" //usage: "\n -s Kernel name (default)"
//usage: "\n -p Processor type" //usage: "\n -p Processor type"
//usage: "\n -v Kernel version" //usage: "\n -v Kernel version"
//usage: "\n -i The hardware platform" //usage: "\n -i Hardware platform"
//usage: "\n -o OS name" //usage: "\n -o OS name"
//usage: //usage:
//usage:#define uname_example_usage //usage:#define uname_example_usage

View File

@ -27,7 +27,7 @@
//usage:#define yes_trivial_usage //usage:#define yes_trivial_usage
//usage: "[STRING]" //usage: "[STRING]"
//usage:#define yes_full_usage "\n\n" //usage:#define yes_full_usage "\n\n"
//usage: "Repeatedly output a line with STRING, or 'y'" //usage: "Repeatedly print a line with STRING, or 'y'"
#include "libbb.h" #include "libbb.h"

View File

@ -13,7 +13,10 @@
//usage:#define ts_trivial_usage //usage:#define ts_trivial_usage
//usage: "[-is] [STRFTIME]" //usage: "[-is] [STRFTIME]"
//usage:#define ts_full_usage "" //usage:#define ts_full_usage "\n\n"
//usage: "Pipe stdin to stdout, add timestamp to each line\n"
//usage: "\n -s Time since start"
//usage: "\n -i Time since previous line"
#include "libbb.h" #include "libbb.h"
#include "common_bufsiz.h" #include "common_bufsiz.h"

View File

@ -1052,9 +1052,9 @@ static unsigned handle_input(unsigned scan_mask, duration_t interval)
//usage: "[-b"IF_FEATURE_TOPMEM("m")IF_FEATURE_SHOW_THREADS("H")"]" //usage: "[-b"IF_FEATURE_TOPMEM("m")IF_FEATURE_SHOW_THREADS("H")"]"
//usage: " [-n COUNT] [-d SECONDS]" //usage: " [-n COUNT] [-d SECONDS]"
//usage:#define top_full_usage "\n\n" //usage:#define top_full_usage "\n\n"
//usage: "Provide a view of process activity in real time." //usage: "Show a view of process activity in real time."
//usage: "\n""Read the status of all processes from /proc each SECONDS" //usage: "\n""Read the status of all processes from /proc each SECONDS"
//usage: "\n""and display a screenful of them." //usage: "\n""and show a screenful of them."
//usage: "\n" //usage: "\n"
//usage: IF_FEATURE_TOP_INTERACTIVE( //usage: IF_FEATURE_TOP_INTERACTIVE(
//usage: "Keys:" //usage: "Keys:"