]> git.ipfire.org Git - thirdparty/lxc.git/commit
Improve name completion handling.
authorEdênis Freindorfer Azevedo <edenisfa@gmail.com>
Fri, 27 Aug 2021 20:24:24 +0000 (17:24 -0300)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 14 Oct 2021 15:26:08 +0000 (17:26 +0200)
commit2afe5123915356c9c4534b0a19409556c5dd64f1
tree4980eecd50643f463dcac87889fee7acc23fd6ab
parentea35c37f0daf60798ce5693eb522001398950bbc
Improve name completion handling.

Use regex to handle short option `-n`, since short options can be
combined (e.g. `-nd`) as long as at max one requires an argument.

Also consider the case when the arg for the long option is not given
together with `--name=`.

Signed-off-by: Edênis Freindorfer Azevedo <edenisfa@gmail.com>
config/bash/lxc.in