helpBanner
immutable
auto helpBanner =
`safeArg ` ~ packageVersion ~ `: <https://github.com/Abscissa/safeArg>
Built on ` ~ packageTimestamp ~ `
-----------------------------------------------------
Takes a null-delimited list of args on stdin, and passes them as command line
arguments to any program you choose.
This is more secure, less error-prone, and more portable than using the shell's
command substitution or otherwise relying on the shell to parse args.
USAGE:
safearg [options] program_to_run [initial-arguments] < INPUT
INPUT:
A null-delimited (by default) list of command line arguments to app.
EXAMPLE:
printf 'mid1\0mid2' | safearg --post=end1 --post=end2 program_to_run first
The above (effectively) runs:
program_to_run first mid1 mid2 end1 end2
EXAMPLE:
printf 'middle 1\0middle 2' | safearg --post=end printf '[%s]\n' first
The above (effectively) runs:
printf '[%s]\n' 'middle 1' 'middle 2' end
And outputs:
[first]
[middle 1]
[middle 2]
[end]
OPTIONS:`;
safearg main
functionsvariables