aboutsummaryrefslogtreecommitdiffstats
path: root/complete.c
diff options
context:
space:
mode:
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;