summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath2003-04-27 06:02:14 +0000
committerGlenn L McGrath2003-04-27 06:02:14 +0000
commitf01b805d9142bad42ebd8d0b4f6770bf06fb2cc3 (patch)
tree3a0adfb6330858de103e96a5b42d3f76418502af /include
parentc91ce5709998976d8b6614b3ac6201692d20eb94 (diff)
downloadbusybox-f01b805d9142bad42ebd8d0b4f6770bf06fb2cc3.zip
busybox-f01b805d9142bad42ebd8d0b4f6770bf06fb2cc3.tar.gz
New applet, fold
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h10
2 files changed, 13 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 7267b82..668c849 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -202,6 +202,9 @@
#ifdef CONFIG_FIND
APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_FOLD
+ APPLET(fold, fold_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_FREE
APPLET(free, free_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index 6848549..e98e8b9 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -627,6 +627,16 @@
"$ find / -name /etc/passwd\n" \
"/etc/passwd\n"
+#define fold_trivial_usage \
+ "[bsw] [FILE]"
+#define fold_full_usage \
+ "Wrap input lines in each FILE (standard input by default), writing to\n" \
+ "standard output.\n\n" \
+ "Options:\n" \
+ "\t-b\tcount bytes rather than columns\n" \
+ "\t-s\tbreak at spaces\n" \
+ "\t-w\tuse WIDTH columns instead of 80\n"
+
#define free_trivial_usage \
""
#define free_full_usage \