diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-01-02 15:21:20 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-01-02 15:21:20 +0100 |
commit | f28cb6099e6aceae33c70e95363275d125ac3657 (patch) | |
tree | 3b62f46e611b965a3772a55eec1bec203aa93684 /complete.c | |
parent | 3d93e43f45807eda548f17c3ef7b61823a614972 (diff) | |
download | drminfo-f28cb6099e6aceae33c70e95363275d125ac3657.tar.gz |
hide completion options
Diffstat (limited to 'complete.c')
-rw-r--r-- | complete.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |