From: Jean Privat Date: Wed, 23 Jul 2014 20:33:16 +0000 (-0400) Subject: Merge: Tired of having to remember all the Nit options? Try bash_completion! X-Git-Tag: v0.6.7~20 X-Git-Url: http://nitlanguage.org Merge: 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 $ 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 Pull-Request: #575 Reviewed-by: Jean Privat Reviewed-by: Lucas Bajolet Reviewed-by: Alexis Laferrière --- 9a5f7e8a9fc5d8e4b34c61c86ec8798ff284588e