Fix getopts setup for "P"
authorSteve McIntyre <steve@einval.com>
Sun, 4 Mar 2018 21:21:17 +0000 (21:21 +0000)
committerSteve McIntyre <steve@einval.com>
Sun, 4 Mar 2018 21:21:17 +0000 (21:21 +0000)
There's no optarg used here. Thanks to Alan W. Kerr for reporting this.

abcde

diff --git a/abcde b/abcde
index 9c88127..2778b1d 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -4079,7 +4079,7 @@ case "$EXTRAVERBOSE" in
 esac
 
 # Parse command line options
-while getopts 1a:bBc:C:d:DefgGhj:klLmMnNo:pP:Q:r:s:S:t:T:UvVxX:w:W:z opt ; do
+while getopts 1a:bBc:C:d:DefgGhj:klLmMnNo:pPQ:r:s:S:t:T:UvVxX:w:W:z opt ; do
        case "$opt" in
                1) ONETRACK=y ;;
                a) ACTIONS="$OPTARG" ;;