Signed-off-by: Jan Tluka jtluka@redhat.com --- install/lnst-ctl.bash | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/install/lnst-ctl.bash b/install/lnst-ctl.bash index 27b064b..c1dd9c8 100644 --- a/install/lnst-ctl.bash +++ b/install/lnst-ctl.bash @@ -12,15 +12,19 @@ _list_has_item()
_lnst_ctl() { - local SHORT_OPTS="-a -A -c -d -h -m -o -p -x -v" - local LONG_OPTS="--define-alias --override-alias --config --debug \ - --help --no-colours --disable-pool-checks \ - --packet-capture --result --verbose" + local SHORT_OPTS="-a -A -c -C -d -h -m -o -p -r -u -x -v" + local LONG_OPTS="--define-alias --override-alias \ + --config --config-override \ + --debug --help --no-colours --disable-pool-checks \ + --packet-capture --pools --reduce-sync \ + --result --multi-match --verbose" local REQUIRE_ARG="-a --define-alias \ -A --override-alias \ -c --config \ - -x --result" - local ACTIONS="config_only match_setup run list_pools" + -C --config-override \ + -x --result \ + --pools" + local ACTIONS="config_only match_setup run list_pools deconfigure"
local cur=${COMP_WORDS[COMP_CWORD]} local prev=${COMP_WORDS[COMP_CWORD-1]} @@ -29,7 +33,7 @@ _lnst_ctl() case "$prev" in -a|--define-alias) return 0 ;; -A|--override-alias) return 0 ;; - -c|--config) + -c|--config|-C|--config-override) _filedir return 0 ;; @@ -37,6 +41,10 @@ _lnst_ctl() _filedir return 0 ;; + --pools) + _filedir + return 0 + ;; esac
# Complete long and shor options
On Wed, Mar 22, 2017 at 12:05:25PM +0100, Jan Tluka wrote:
Signed-off-by: Jan Tluka jtluka@redhat.com
install/lnst-ctl.bash | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/install/lnst-ctl.bash b/install/lnst-ctl.bash index 27b064b..c1dd9c8 100644 --- a/install/lnst-ctl.bash +++ b/install/lnst-ctl.bash @@ -12,15 +12,19 @@ _list_has_item()
_lnst_ctl() {
- local SHORT_OPTS="-a -A -c -d -h -m -o -p -x -v"
- local LONG_OPTS="--define-alias --override-alias --config --debug \
--help --no-colours --disable-pool-checks \
--packet-capture --result --verbose"
- local SHORT_OPTS="-a -A -c -C -d -h -m -o -p -r -u -x -v"
- local LONG_OPTS="--define-alias --override-alias \
--config --config-override \
--debug --help --no-colours --disable-pool-checks \
--packet-capture --pools --reduce-sync \
local REQUIRE_ARG="-a --define-alias \ -A --override-alias \ -c --config \--result --multi-match --verbose"
-x --result"
- local ACTIONS="config_only match_setup run list_pools"
-C --config-override \
-x --result \
--pools"
local ACTIONS="config_only match_setup run list_pools deconfigure"
local cur=${COMP_WORDS[COMP_CWORD]} local prev=${COMP_WORDS[COMP_CWORD-1]}
@@ -29,7 +33,7 @@ _lnst_ctl() case "$prev" in -a|--define-alias) return 0 ;; -A|--override-alias) return 0 ;;
-c|--config)
-c|--config|-C|--config-override) _filedir return 0 ;;
@@ -37,6 +41,10 @@ _lnst_ctl() _filedir return 0 ;;
--pools)
_filedir
return 0
;;
esac
# Complete long and shor options
-- 2.7.4 _______________________________________________ LNST-developers mailing list -- lnst-developers@lists.fedorahosted.org To unsubscribe send an email to lnst-developers-leave@lists.fedorahosted.org
Acked-by: Ondrej Lichtner olichtne@redhat.com
Wed, Mar 22, 2017 at 12:05:25PM CET, jtluka@redhat.com wrote:
Signed-off-by: Jan Tluka jtluka@redhat.com
Pushed.
-Jan
lnst-developers@lists.fedorahosted.org