privat/nit — pull request #575 by Morriar (2014-07-15 18:50:21+00:00)
Title: Tired of having to remember all the Nit options? Try bash_completion!

This PR enables the option --gen-bash-completion that allow user to generate a bash completion file.

Exemple with `nitdoc`:

$ nitdoc --gen-bash-completion --bash-toolname nitdoc
$ sudo ln -s /bin/nitdoc.bash /etc/bash_completion.d/nitdoc
$ . /etc/bash_completion.d/nitdoc

Then:

$ nitdoc [TAB][TAB]
$ file1.nit file2.nit file3.nit

$ nitdoc --[TAB][TAB]
$ --bash-toolname --github-base-sha1 --no-dot --sharedir
$ --custom-brand --github-gitdir --only-metamodel --shareurl
$ --custom-footer-text --github-upstream --only-parse --source
$ --custom-overview-text --help --path --stop-on-first-error
$ --custom-title --ignore-visibility --piwik-site-id --verbose
$ --dir --log --piwik-tracker --version
$ --disable-phase --log-dir --private --warn
$ --gen-bash-completion --no-color --quiet

Signed-off-by: Alexandre Terrasa