From 7d963814db27b98f78b2eb5b102ab5b6daa36d12 Mon Sep 17 00:00:00 2001 From: Paul Seyfert Date: Thu, 31 May 2018 17:27:22 +0200 Subject: [PATCH] suggest -Xiwyu more than once to include-what-you-use --- src/_include-what-you-use | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_include-what-you-use b/src/_include-what-you-use index c179a9d..04e5c2f 100644 --- a/src/_include-what-you-use +++ b/src/_include-what-you-use @@ -42,7 +42,6 @@ # submit itself to any jurisdiction. # TODO: -# - suggest -Xiwyu more than just once # - prevent _iwyu_opts from running once the first clang option got passed _iwyu_opts() { @@ -61,6 +60,6 @@ _iwyu_opts() { '--verbose=[the higher the level, the more output]:a number:' } -_arguments "-Xiwyu[include-what-you-use options]:include-what-you-use options:_iwyu_opts" +_arguments "*-Xiwyu[include-what-you-use options]:include-what-you-use options:_iwyu_opts" # gcc will also provide --version and --help. Not ideal. _gcc