summaryrefslogtreecommitdiff
path: root/src/cli/cmd_help.c
Commit message (Collapse)AuthorAgeFilesLines
* cli: support `help <command>`Edward Thomson2022-02-261-7/+16
| | | | | | Support `help <command>` by re-invoking the command itself with the `--help` argument. This allows us to keep the help logic with the commands itself.
* cli: introduce a help commandEdward Thomson2022-02-261-0/+77
Add a framework for commands to be defined, and add our first one, "help". When `git2_cli help` is run, the `cmd_help` function will be invoked with the remaining command line arguments. This allows users to invoke `git2_cli help foo` to get information about the `foo` subcommand.