X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fusage.h;h=aae06fda14a8671fa3b5b8373835758424d4ff25;hb=ca899efd6cfea224a10e7a596ca4780a2b85ef18;hp=4e055168e6d9f12757c7c8a20c3cb1e64da60238;hpb=666e1d3978ebd2b72b18333f4face0e10cc816ba;p=oweals%2Fbusybox.git diff --git a/include/usage.h b/include/usage.h index 4e055168e..aae06fda1 100644 --- a/include/usage.h +++ b/include/usage.h @@ -119,13 +119,10 @@ #define ash_full_usage "" #define hush_trivial_usage NOUSAGE_STR #define hush_full_usage "" +#define lash_trivial_usage NOUSAGE_STR +#define lash_full_usage "" #define msh_trivial_usage NOUSAGE_STR #define msh_full_usage "" -#define bbsh_trivial_usage \ - "[FILE]...\n" \ - "or: bbsh -c command [args]..." -#define bbsh_full_usage "\n\n" \ - "The bbsh shell (command interpreter)" #define awk_trivial_usage \ "[OPTIONS] [AWK_PROGRAM] [FILE]..." @@ -148,10 +145,20 @@ "$ basename /foo/bar.txt .txt\n" \ "bar" +#define beep_trivial_usage \ + "-f freq -l length -d delay -r repetitions -n" +#define beep_full_usage "\n\n" \ + "Options:" \ + "\n -f Frequency in Hz" \ + "\n -l Length in ms" \ + "\n -d Delay in ms" \ + "\n -r Repetitions" \ + "\n -n Start new tone" \ + #define fbsplash_trivial_usage \ "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]" #define fbsplash_full_usage "\n\n" \ - "Options:\n" \ + "Options:" \ "\n -s Image" \ "\n -c Hide cursor" \ "\n -d Framebuffer device (default /dev/fb0)" \ @@ -668,6 +675,7 @@ #define date_full_usage "\n\n" \ "Display time (using +FMT), or set time\n" \ "\nOptions:" \ + "\n [-s] TIME Set time to TIME" \ "\n -u Work in UTC (don't convert to local time)" \ "\n -R Output RFC-822 compliant date string" \ IF_FEATURE_DATE_ISOFMT( \ @@ -676,18 +684,17 @@ "\n 'hours', 'minutes', or 'seconds' for date and" \ "\n time to the indicated precision" \ ) \ - "\n -d TIME Display TIME, not 'now'" \ "\n -r FILE Display last modification time of FILE" \ - "\n [-s] TIME Set time to TIME" \ + "\n -d TIME Display TIME, not 'now'" \ IF_FEATURE_DATE_ISOFMT( \ - "\n -D FMT Use FMT for str->date conversion" \ + "\n -D FMT Use FMT for -d TIME conversion" \ ) \ "\n" \ "\nRecognized formats for TIME:" \ "\n hh:mm[:ss]" \ "\n [YYYY.]MM.DD-hh:mm[:ss]" \ "\n YYYY-MM-DD hh:mm[:ss]" \ - "\n MMDDhhmm[[YY]YY][.ss]" \ + "\n [[[[[YY]YY]MM]DD]hh]mm[.ss]" \ #define date_example_usage \ "$ date\n" \ @@ -1792,8 +1799,8 @@ #define ifplugd_trivial_usage \ "[OPTIONS]" #define ifplugd_full_usage "\n\n" \ - "Network interface plug detection daemon.\n\n" \ - "Options:\n" \ + "Network interface plug detection daemon\n" \ + "\nOptions:" \ "\n -n Do not daemonize" \ "\n -s Do not log to syslog" \ "\n -i IFACE Interface" \ @@ -3218,18 +3225,19 @@ ) #define patch_trivial_usage \ - "[-p NUM] [-i DIFF] [-R]" + "[-p NUM] [-i DIFF] [-R] [-N]" #define patch_full_usage "\n\n" \ " -p NUM Strip NUM leading components from file names" \ "\n -i DIFF Read DIFF instead of stdin" \ "\n -R Reverse patch" \ + "\n -N Ignore already applied patches" \ #define patch_example_usage \ "$ patch -p1 < example.diff\n" \ "$ patch -p0 -i example.diff" #define pgrep_trivial_usage \ - "[-flnovx] PATTERN" + "[-flnovx] [-s SID|-P PPID|PATTERN]" #define pgrep_full_usage "\n\n" \ "Display process(es) selected by regex PATTERN\n" \ "\nOptions:" \ @@ -3237,8 +3245,10 @@ "\n -f Match against entire command line" \ "\n -n Show the newest process only" \ "\n -o Show the oldest process only" \ - "\n -v Negate the matching" \ + "\n -v Negate the match" \ "\n -x Match whole name (not substring)" \ + "\n -s Match session ID (0 for current)" \ + "\n -P Match parent process ID" \ #if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT) #define pidof_trivial_usage \ @@ -3331,7 +3341,7 @@ "the new root file system" #define pkill_trivial_usage \ - "[-l] | [-fnovx] [-signal] PATTERN" + "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]" #define pkill_full_usage "\n\n" \ "Send a signal to process(es) selected by regex PATTERN\n" \ "\nOptions:" \ @@ -3339,8 +3349,10 @@ "\n -f Match against entire command line" \ "\n -n Signal the newest process only" \ "\n -o Signal the oldest process only" \ - "\n -v Negate the matching" \ + "\n -v Negate the match" \ "\n -x Match whole name (not substring)" \ + "\n -s Match session ID (0 for current)" \ + "\n -P Match parent process ID" \ #define popmaildir_trivial_usage \ "[OPTIONS] Maildir [connection-helper ...]" @@ -3899,12 +3911,6 @@ "and will not be affected by keyboard signals (Ctrl-C etc).\n" \ "See setsid(2) for details." \ -#define lash_trivial_usage \ - "[FILE]...\n" \ - "or: sh -c command [args]..." -#define lash_full_usage "\n\n" \ - "lash is deprecated, please use hush" - #define last_trivial_usage \ ""IF_FEATURE_LAST_FANCY("[-HW] [-f file]") #define last_full_usage "\n\n" \ @@ -4552,11 +4558,12 @@ "and show the status for however many processes will fit on the screen." \ #define touch_trivial_usage \ - "[-c] FILE [FILE]..." + "[-c] [-d DATE] FILE [FILE]..." #define touch_full_usage "\n\n" \ "Update the last-modified date on the given FILE[s]\n" \ "\nOptions:" \ - "\n -c Do not create any files" \ + "\n -c Do not create files" \ + "\n -d DT Date/time to use" \ #define touch_example_usage \ "$ ls -l /tmp/foo\n" \ @@ -4896,6 +4903,11 @@ IF_FEATURE_TUNCTL_UG( \ "\nOptions:" \ "\n -a Lock all VTs" \ +#define volname_trivial_usage \ + "[DEVICE]" +#define volname_full_usage "\n\n" \ + "Show CD volume name of the DEVICE (default /dev/cdrom)" + #define watch_trivial_usage \ "[-n seconds] [-t] PROG [ARGS]" #define watch_full_usage "\n\n" \