[BusyBox-cvs] busybox/include usage.h,1.170,1.171
Glenn McGrath
bug1 at busybox.net
Fri Oct 10 23:15:27 UTC 2003
Update of /var/cvs/busybox/include
In directory winder:/tmp/cvs-serv5111/include
Modified Files:
usage.h
Log Message:
Vodz last_patch_117, update options for new xargs
Index: usage.h
===================================================================
RCS file: /var/cvs/busybox/include/usage.h,v
retrieving revision 1.170
retrieving revision 1.171
diff -u -d -r1.170 -r1.171
--- usage.h 9 Oct 2003 11:46:22 -0000 1.170
+++ usage.h 10 Oct 2003 23:15:23 -0000 1.171
@@ -2736,13 +2736,32 @@
#define whoami_full_usage \
"Prints the user name associated with the current effective user id."
+#ifdef CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION
+#define USAGE_XARGS_CONFIRMATION(a) a
+#else
+#define USAGE_XARGS_CONFIRMATION(a)
+#endif
+#ifdef CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT
+#define USAGE_XARGS_TERMOPT(a) a
+#else
+#define USAGE_XARGS_TERMOPT(a)
+#endif
+#ifdef CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM
+#define USAGE_XARGS_ZERO_TERM(a) a
+#else
+#define USAGE_XARGS_ZERO_TERM(a)
+#endif
+
+
#define xargs_trivial_usage \
- "[COMMAND] [-prt] [ARGS...]"
+ "[COMMAND] [OPTIONS] [ARGS...]"
#define xargs_full_usage \
"Executes COMMAND on every item given by standard input.\n\n" \
"Options:\n" \
- "\t-p\tPrompt the user about whether to run each command\n" \
+ USAGE_XARGS_CONFIRMATION("\t-p\tPrompt the user about whether to run each command\n") \
"\t-r\tDo not run command for empty readed lines\n" \
+ USAGE_XARGS_TERMOPT("\t-x\tExit if the size is exceeded\n") \
+ USAGE_XARGS_ZERO_TERM("\t-0\tInput filenames are terminated by a null character\n") \
"\t-t\tPrint the command line on stderr before executing it."
#define xargs_example_usage \
"$ ls | xargs gzip\n" \
More information about the busybox-cvs
mailing list