# bash completion for ggcov commands.
# As of ggcov 0.9, ; amck, 2014-06-14
# more can be done later.

complete -W " \
 -R -a -B -H -L -S -N -G -P \
 -o -? -r -X -Y -Z -p -o -F \
 -D -v -? \
 --report --annotate --blocks --header --lines \
 --status --new-format --check-callgraph --dump-callgraph \
 --output --whatever --recursive --suppress-call --suppress-ifdef \
 --suppress-comment --suppress-comment-between  \
 -- gcda-prefix --object-directory --solve-fuzzy \
 --debug --version --help --usage \
 " -f tggcov

# Usage: ggcov-run [options] program args...
#options are:
#    --gcda-prefix=DIR         Write .gcda files to the tree under DIR
complete -W "--gcdd-prefix --help" -f ggcov-run

#Usage: git-history-coverage.pl [options] [revlist]
#options are:
#    --summary-overall    emit an overall summary
#    --summary-by-author  emit a summary categorised by author
#    --summary-by-commit  emit a summary categorised by commit
#    --gcda-prefix DIR    directory underneath which to find .da files
#    -v, --verbose        emit debug messages
complete -W " -v --verbose --summary-overall --summary-by-author --summary-by-commit --gcda-prefix help " -f git-history-coverage

complete -W "-f --output-file --dump -? -r --recursive --suppress-call --X \
 -Y --suppress-comment -Z --suppress-comment-between -P --gcda-prefix -o --object-directory \
 -F --solve-fuzzy -D --debug -v --version -? --help --usage " -f ggcov-webdb

complete -W " --load-modules -? --help --usage \
 -w --initial-windows --profile -? --whatever -r --recursive \
 --suppress-call -X --suppress-ifdef -Y --suppress-comment -Z --suppress-comment-between \
 -p --gcda-prefix -o --object-directory -F --solve-fuzzy -D --debug -v --version \
 --gdk-debug --gdk-no-debug --display --screen -sync --name --class --gtk-debug --gtk-no-debug \
 --g-fatal-warnings --gtk-module --oaf-ior-fd --oaf-activate-iid --oaf-private 
 --disable-sound --enable-sound --espeaker --version " -f ggcov

