summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorEric Andersen2000-09-22 20:01:23 +0000
committerEric Andersen2000-09-22 20:01:23 +0000
commit92a61c1206572f4a6e55baa24e7cdd4f180d4b64 (patch)
treec5354bb550d20972523bfb5c38b8666df527d75d /applets
parent90f580ad5bde613e01a5ddf2efb5eb2d3a5f6a72 (diff)
downloadbusybox-92a61c1206572f4a6e55baa24e7cdd4f180d4b64.zip
busybox-92a61c1206572f4a6e55baa24e7cdd4f180d4b64.tar.gz
Add in xargs
Diffstat (limited to 'applets')
-rw-r--r--applets/busybox.c3
-rw-r--r--applets/usage.c11
2 files changed, 14 insertions, 0 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 43871b7..f923774 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -349,6 +349,9 @@ const struct BB_applet applets[] = {
#ifdef BB_WHOAMI
{"whoami", whoami_main, _BB_DIR_USR_BIN, whoami_usage},
#endif
+#ifdef BB_XARGS
+ {"xargs", xargs_main, _BB_DIR_USR_BIN, xargs_usage},
+#endif
#ifdef BB_YES
{"yes", yes_main, _BB_DIR_USR_BIN, yes_usage},
#endif
diff --git a/applets/usage.c b/applets/usage.c
index 4a3d734..8e02479 100644
--- a/applets/usage.c
+++ b/applets/usage.c
@@ -1432,6 +1432,17 @@ const char whoami_usage[] =
;
#endif
+#if defined BB_XARGS
+const char xargs_usage[] =
+ "xargs [-0prtx] [-e[eof-str]] [-i[replace-str]] [-l[max-lines]]\n"
+ "[-n max-args] [-s max-chars] [-P max-procs] [--null] [--eof[=eof-str]]\n"
+ "[--replace[=replace-str]] [--max-lines[=max-lines]] [--interactive]\n"
+ "[--max-chars=max-chars] [--verbose] [--exit] [--max-procs=max-procs]\n"
+ "[--max-args=max-args] [--no-run-if-empty] [--help]\n"
+ "[command [initial-arguments]]\n"
+ "\nBuild and execute command on lines from standard input.\n";
+#endif
+
#if defined BB_YES
const char yes_usage[] =
"yes [OPTION]... [STRING]...\n"