]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
completions: add get-feature command changed option
authorTokunori Ikegami <ikegami.t@gmail.com>
Fri, 20 Sep 2024 16:24:26 +0000 (01:24 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 23 Sep 2024 09:18:42 +0000 (11:18 +0200)
Separeted from the sel option changed value.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
completions/_nvme
completions/bash-nvme-completion.sh

index dc12b48427929204fc896a11a351f136ba142754..048fcee4c10d157f1ff24fac7ee358cd6a911674 100644 (file)
@@ -1245,6 +1245,10 @@ _nvme () {
                        -b':alias to --raw-binary'
                        --timeout=':value for timeout'
                        -t':alias of --timeout'
+                       --human-readable':show feature in readable format'
+                       -H':alias of --human-readable'
+                       --changed':show feature changed'
+                       -C':alias of --changed'
                        )
                        _arguments '*:: :->subcmds'
                        _describe -t commands "nvme get-feature options" _getf
index 42ad0c45150881868ad35f0db4a1f50316d8f5bf..451a6c0097019429826278d55ed86642bcdf4d5d 100644 (file)
@@ -205,7 +205,7 @@ nvme_list_opts () {
                "get-feature")
                opts+=" --namespace-id= -n --feature-id= -f --sel= -s \
                        --data-len= -l --cdw11= --c -uuid-index= -U --raw-binary -b \
-                       --human-readable -H --timeout= -t"
+                       --human-readable -H --timeout= -t --changed -C"
                        ;;
                "device-self-test")
                opts+=" --namespace-id= -n --self-test-code= -s --timeout= -t"