() Karl Berry
() Mon, 23 May 2016 20:56:23 GMT
[get around ‘-i’ somehow] (see perlrun)
Thanks.
On the other hand, I wouldn't argue that --help/--version
support is so important for this script that it is worth any
complication (let alone a wrapper).
I agree, it's not so important.
was defeated by Perl's ôòø-iôòù support (which, IIUC, says to take all
script args as filenames, hence leaving no room for the script to
check/handle args specially
Untried, but what comes to mind first is to check if ($ARGV eq "--help").
Or, omit the -i,
check for --help/--version,
For anyone interested, here is a small update-copyright wrapper
that supports ‘--help’ and ‘--version’:
#!/bin/sh
actual=$HOME/build/GNU/gnulib/build-aux/update-copyright
if [ x"$1" = x--help ] ; then
printf 'Usage: %s FILE...\n\n' `basename $0`
sed -e '/arguments to this script/,/^$/!d'