summaryrefslogtreecommitdiff
path: root/coreutils/split.c
diff options
context:
space:
mode:
authorPere Orga2011-03-31 14:43:25 +0200
committerDenys Vlasenko2011-03-31 14:43:25 +0200
commit34425389e09353a8dacdd6b23a62553f699c544c (patch)
tree4eb2e19685536384748e75af827deca885c9cc0a /coreutils/split.c
parente3d8d077b7d2e51fed03dc20267eadbe38903b2a (diff)
downloadbusybox-34425389e09353a8dacdd6b23a62553f699c544c.zip
busybox-34425389e09353a8dacdd6b23a62553f699c544c.tar.gz
move help text from include/usage.src.h to coreutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/split.c')
-rw-r--r--coreutils/split.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/coreutils/split.c b/coreutils/split.c
index 79316ed..f007707 100644
--- a/coreutils/split.c
+++ b/coreutils/split.c
@@ -9,6 +9,19 @@
* SUSv3 requirements:
* http://www.opengroup.org/onlinepubs/009695399/utilities/split.html
*/
+
+//usage:#define split_trivial_usage
+//usage: "[OPTIONS] [INPUT [PREFIX]]"
+//usage:#define split_full_usage "\n\n"
+//usage: "Options:"
+//usage: "\n -b N[k|m] Split by N (kilo|mega)bytes"
+//usage: "\n -l N Split by N lines"
+//usage: "\n -a N Use N letters as suffix"
+//usage:
+//usage:#define split_example_usage
+//usage: "$ split TODO foo\n"
+//usage: "$ cat TODO | split -a 2 -l 2 TODO_\n"
+
#include "libbb.h"
static const struct suffix_mult split_suffices[] = {