diff mbox

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

Message ID 20170829230149.22822-1-vishal.l.verma@intel.com (mailing list archive)
State Accepted
Commit 53dd175b3929
Headers show

Commit Message

Verma, Vishal L Aug. 29, 2017, 11:01 p.m. UTC
We were missing completion for label-version, add it.

Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
---
 contrib/ndctl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/contrib/ndctl b/contrib/ndctl
index c7e3e7d..1874763 100755
--- a/contrib/ndctl
+++ b/contrib/ndctl
@@ -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
 			;;