aboutsummaryrefslogtreecommitdiffstats
path: root/complete.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-01-02 15:21:20 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-01-02 15:21:20 +0100
commitf28cb6099e6aceae33c70e95363275d125ac3657 (patch)
tree3b62f46e611b965a3772a55eec1bec203aa93684 /complete.c
parent3d93e43f45807eda548f17c3ef7b61823a614972 (diff)
downloaddrminfo-f28cb6099e6aceae33c70e95363275d125ac3657.tar.gz
hide completion options
Diffstat (limited to 'complete.c')
-rw-r--r--complete.c4
1 files changed, 4 insertions, 0 deletions
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;