Add 'docs' subcommand. Solves #1043.