aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-09-15 19:26:59 +0000
committerRob Landley <rob@landley.net>2005-09-15 19:26:59 +0000
commit9200e79d21dbe3d91498f8fc7d33531286ae7d0d (patch)
tree064e422cc8f868ef50db35178f9fabc29ddd5451 /include
parentbfd94c43310a7bbe679fc7185a7c19a3ed0e59ee (diff)
downloadbusybox-w32-9200e79d21dbe3d91498f8fc7d33531286ae7d0d.tar.gz
busybox-w32-9200e79d21dbe3d91498f8fc7d33531286ae7d0d.tar.bz2
busybox-w32-9200e79d21dbe3d91498f8fc7d33531286ae7d0d.zip
New applet "less", from Rob Sullivan.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h16
2 files changed, 19 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 61210bcc3..64e561a88 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -359,6 +359,9 @@
359#ifdef CONFIG_FEATURE_INITRD 359#ifdef CONFIG_FEATURE_INITRD
360 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER) 360 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER)
361#endif 361#endif
362#ifdef CONFIG_LESS
363 APPLET(less, less_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
364#endif
362#ifdef CONFIG_LN 365#ifdef CONFIG_LN
363 APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER) 366 APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER)
364#endif 367#endif
diff --git a/include/usage.h b/include/usage.h
index 9ddd55fd8..43b6f7048 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1498,6 +1498,22 @@
1498 "$ length Hello\n" \ 1498 "$ length Hello\n" \
1499 "5\n" 1499 "5\n"
1500 1500
1501#define less_trivial_usage \
1502 "[-EMNmh~?] FILE1 FILE2..."
1503#define less_full_usage \
1504 "View a file or list of files. The position within files can be\n" \
1505 "changed, and files can be manipulated in various ways with the\n" \
1506 "following options:\n\n" \
1507 "\t-E\tQuit once the end of a file is reached\n" \
1508 "\t-M\tDisplay a status line containing the current line numbers\n" \
1509 "\t\tand the percentage through the file\n" \
1510 "\t-N\tPrefix line numbers to each line\n" \
1511 "\t-m\tDisplay a status line containing the percentage through the\n" \
1512 "\t\tfile\n" \
1513 "\t-~\tSuppress ~s displayed when input past the end of the file is\n" \
1514 "\t\treached.\n" \
1515 "\t-h, -?\tDisplay this help message\n"
1516
1501#define ln_trivial_usage \ 1517#define ln_trivial_usage \
1502 "[OPTION] TARGET... LINK_NAME|DIRECTORY" 1518 "[OPTION] TARGET... LINK_NAME|DIRECTORY"
1503#define ln_full_usage \ 1519#define ln_full_usage \