diff options
author | Rob Landley | 2005-09-15 19:26:59 +0000 |
---|---|---|
committer | Rob Landley | 2005-09-15 19:26:59 +0000 |
commit | 9200e79d21dbe3d91498f8fc7d33531286ae7d0d (patch) | |
tree | 064e422cc8f868ef50db35178f9fabc29ddd5451 /include | |
parent | bfd94c43310a7bbe679fc7185a7c19a3ed0e59ee (diff) | |
download | busybox-9200e79d21dbe3d91498f8fc7d33531286ae7d0d.zip busybox-9200e79d21dbe3d91498f8fc7d33531286ae7d0d.tar.gz |
New applet "less", from Rob Sullivan.
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 61210bc..64e561a 100644 --- a/include/applets.h +++ b/include/applets.h @@ -359,6 +359,9 @@ #ifdef CONFIG_FEATURE_INITRD APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER) #endif +#ifdef CONFIG_LESS + APPLET(less, less_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_LN APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index 9ddd55f..43b6f70 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1498,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 \ |