FIX: Short help -h inaccessible when custom config is used.

When short-circuiting the option parsing, the OPTIND must be adapted, too, so that the getopts processing loop is quit correctly.
This commit is contained in:
Ingo Karkat
2012-08-30 12:38:54 +02:00
parent 50aea1e4f0
commit 8d8ef812a2
2 changed files with 29 additions and 0 deletions

View File

@@ -514,6 +514,7 @@ do
# Cannot just invoke shorthelp() because we need the configuration
# processed to locate the add-on actions directory.
set -- '-h' 'shorthelp'
OPTIND=2
;;
n )
OVR_TODOTXT_PRESERVE_LINE_NUMBERS=0