From e47b389991c6adbed6e1831a92b2e48d9513b89d Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 2 Jan 2020 16:44:58 +0100 Subject: Revert "use correct card" This reverts commit fb402f50b3bc7613fe458e41a3f575ae5439a7cb. --- complete.c | 5 ++--- 1 file 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" -- cgit