Fix handling positional args on CLI command search autocompletion

This commit is contained in:
Benjamin Renard 2020-06-23 16:00:25 +02:00
parent 1eced8f47a
commit 4a72388c60

View file

@ -1580,6 +1580,24 @@ class LSsearch {
} }
else { else {
switch ($command_args[$i]) { switch ($command_args[$i]) {
case '--subdn':
case '-s':
case '--scope':
case '-f':
case '--filter':
case '-b':
case '--basedn':
case '-l':
case '--limit':
case '--sort-limit':
case '-N':
case '--nb-obj-by-page':
case '-p':
case '--page':
case '--sort-by':
// This args accept options => increase $i
$i++;
break;
case '-e': case '-e':
case '--extra-columns': case '--extra-columns':
$extra_columns = true; $extra_columns = true;