From f28cb6099e6aceae33c70e95363275d125ac3657 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 2 Jan 2020 15:21:20 +0100 Subject: hide completion options --- complete.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/complete.c b/complete.c index 3719563..4425b96 100644 --- a/complete.c +++ b/complete.c @@ -35,6 +35,10 @@ void complete_bash(const char *command, struct option *opts) int i; for (i = 0; opts[i].name != NULL; i++) { + /* hide completion options */ + if (strncmp(opts[i].name, "complete-", 9)) + continue; + /* options with argument completion */ if (strcmp(opts[i].name, "image") == 0) { have_image = true; -- cgit