Add history subcommand.