* Fixed: [Keywords containing '-' hyphen are missing from the auto-completion list](https://github.com/clicon/clixon/issues/330)

* Fixed by disabling `cligen_preference_mode`. This may have other side effects.
This commit is contained in:
Olof hagsand 2022-05-12 14:54:53 +02:00
parent 0c81b66ef3
commit 9cbe313712
2 changed files with 9 additions and 2 deletions

View file

@ -123,6 +123,8 @@ Users may have to change how they access the system
### Corrected Bugs ### Corrected Bugs
* Fixed: [Keywords containing '-' hyphen are missing from the auto-completion list](https://github.com/clicon/clixon/issues/330)
* Fixed by disabling `cligen_preference_mode`. This may have other side effects.
* Fixed: [Returning a string while Querying leaf-list for single entry](https://github.com/clicon/clixon/issues/326) * Fixed: [Returning a string while Querying leaf-list for single entry](https://github.com/clicon/clixon/issues/326)
* Fixed: A long TLS+HTTP/2 request such as by a browser causing block of other requests. * Fixed: A long TLS+HTTP/2 request such as by a browser causing block of other requests.
* Fixed: [Error message seen twice in some cases](https://github.com/clicon/clixon/issues/325) * Fixed: [Error message seen twice in some cases](https://github.com/clicon/clixon/issues/325)

View file

@ -781,8 +781,13 @@ main(int argc,
/* Join rest of argv to a single command */ /* Join rest of argv to a single command */
restarg = clicon_strjoin(argc, argv, " "); restarg = clicon_strjoin(argc, argv, " ");
/* If several cligen object variables match same preference, select first */ /* If several cligen object variables match same preference, select first
cligen_preference_mode_set(cli_cligen(h), 1); * There is some unclarities if this should be set to 0 or 1.
* By default in CLIgen, it is 0
* It used to be 1 in Clixon. But see eg https://github.com/clicon/clixon/issues/330
* There may be cases where there will be "ambiguous".
*/
cligen_preference_mode_set(cli_cligen(h), 0);
/* Call start function in all plugins before we go interactive /* Call start function in all plugins before we go interactive
*/ */