aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-01-02 16:44:58 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-01-02 16:44:58 +0100
commite47b389991c6adbed6e1831a92b2e48d9513b89d (patch)
treed229554716a34488cfd916baceca8dd48a467406
parentfb402f50b3bc7613fe458e41a3f575ae5439a7cb (diff)
downloaddrminfo-e47b389991c6adbed6e1831a92b2e48d9513b89d.tar.gz
Revert "use correct card"
This reverts commit fb402f50b3bc7613fe458e41a3f575ae5439a7cb.
-rw-r--r--complete.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/complete.c b/complete.c
index b11e372..87b3332 100644
--- a/complete.c
+++ b/complete.c
@@ -25,8 +25,7 @@
#define CASE_OUTPUT \
" --output)\n" \
- " card=$(getopt -o c: --long card: -- \"@COMP_WORDS\")\n" \
- " words=$(drminfo $card --complete-output)\n" \
+ " words=$(drminfo --complete-output)\n" \
" COMPREPLY=( $(compgen -W \"$words\" -- \"$cur\") )\n" \
" ;;\n"
@@ -76,7 +75,7 @@ void complete_bash(const char *command, struct option *opts)
printf("_%s_complete()\n"
"{\n"
- " local cur prev words card\n"
+ " local cur prev words\n"
" cur=\"${COMP_WORDS[COMP_CWORD]}\"\n"
" prev=\"${COMP_WORDS[COMP_CWORD-1]}\"\n"
" case \"$prev\" in\n"