Skip to contentSkip to conversation

ndctl, bash-completion: add completion for --label-version

PATCH New Vishal Verma 1 participant 1 message Aug 29, 2017 libnvdimm: non-volatile memory device

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH 1/1 ndctl, bash-completion: add completion for --label-version

We were missing completion for label-version, add it.

---
 contrib/ndctl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
contrib/ndctl +4 -1
index c7e3e7d..1874763 100755
@@ -91,7 +91,7 @@ __ndctlcomp()
 
 	COMPREPLY=( $( compgen -W "$1" -- "$2" ) )
 	for cword in "${COMPREPLY[@]}"; do
-		if [[ "$cword" == @(--bus|--region|--type|--mode|--size|--dimm|--reconfig|--uuid|--name|--sector-size|--map|--namespace|--input|--output) ]]; then
+		if [[ "$cword" == @(--bus|--region|--type|--mode|--size|--dimm|--reconfig|--uuid|--name|--sector-size|--map|--namespace|--input|--output|--label-version) ]]; then
 			COMPREPLY[$i]="${cword}="
 		else
 			COMPREPLY[$i]="${cword} "
@@ -205,6 +205,9 @@ __ndctl_comp_options()
 			__ndctl_file_comp "${cur##*=}"
 			return
 			;;
+		--label-version)
+			opts="1.1 1.2"
+			;;
 		*)
 			return
 			;;
Signature · 6 lines
2.9.5

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm