diff --git a/completions/cppcheck b/completions/cppcheck index d3c7a422..bcf937bb 100644 --- a/completions/cppcheck +++ b/completions/cppcheck @@ -48,6 +48,12 @@ _cppcheck() -- "$cur" ) ) return ;; + -rp|--relative-paths) + if $split; then # -rp without argument is allowed + _filedir -d + return + fi + ;; --xml-version) COMPREPLY=( $( compgen -W '1 2' -- "$cur" ) ) return