From 9a2bef433271cd830d318e5b17efc38ac74e34a3 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 2 Nov 2015 22:32:48 +0100 Subject: -R to fail when no arguments are passed --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1940209..631d590 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,13 @@ Over apply: ## Usage: - xe [-0knv] [-I arg] [-N maxargs] [-j maxjobs] COMMAND... + xe [-0Rknv] [-I arg] [-N maxargs] [-j maxjobs] COMMAND... | -s SHELLSCRIPT | -a COMMAND... -- ARGS... | -A ARGSEP COMMAND... ARGSEP ARGS... * `-0`: input filenames are seperated by NUL bytes (default: newlines). +* `-R`: return with status 122 when no arguments have been passed. * `-k`: keep going: don't stop when a command failed to execute. * `-n`: don't run the commands, just print them. * `-v`: print commands before running them. @@ -55,6 +56,9 @@ Like GNU and OpenBSD xargs: * 127 if the command is not found * 1 if some other error occurred. +Additionally, 122 is returned when `-R` is passed and no +input/arguments were passed. + ## Installation Use `make all` to build, `make install` to install relative to `PREFIX` -- cgit 1.4.1