]> git.proxmox.com Git - mirror_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)
committerEdênis Freindorfer Azevedo <edenisfa@gmail.com>
Mon, 6 Sep 2021 20:00:32 +0000 (17:00 -0300)
commit8aa4490505f9ad5a957f3f9797a9ccc080d3bb5d
tree426da24dd41ccaad243e881804eef90d8dd79a5d
parentdb8b9df55517b5bdf2ff4d450238de6234eb2c16
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