mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-23 00:43:48 +01:00
Fix handling positional args on CLI command search autocompletion
This commit is contained in:
parent
1eced8f47a
commit
4a72388c60
1 changed files with 18 additions and 0 deletions
|
@ -1580,6 +1580,24 @@ class LSsearch {
|
|||
}
|
||||
else {
|
||||
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 '--extra-columns':
|
||||
$extra_columns = true;
|
||||
|
|
Loading…
Reference in a new issue