cli: rad patch --help opens man page

This is the same behavior as `git`. We also update the man page to have
the full list of commands and flags.
This commit is contained in:
cloudhead
2023-09-01 15:17:41 +02:00
parent b1213931de
commit 8d5299fe85
5 changed files with 99 additions and 18 deletions
+4 -1
View File
@@ -242,7 +242,10 @@ impl Args for Options {
Long("verbose") | Short('v') => {
verbose = true;
}
Long("help") | Short('h') => {
Long("help") => {
return Err(Error::HelpManual.into());
}
Short('h') => {
return Err(Error::Help.into());
}