Adds auto-completion support to CLI.