Ref T13098. This makes "arc help" kind-of sort-of work again.
Previously, "arc help" was completely custom and hard-coded. Now it just proxies the generic libphutil "help" workflow. The two flows are substantially similar, although old arc help was a little more brief than the new version is. The old arc help --full was more similar to the default:
Command | Old Behavior | New Behavior |
---|---|---|
arc | Tells you to run arc help. | Plan: make this a bit richer and give a quick summary of workflows. |
arc help | Gives you a summary of workflows. | Gives you a detailed list of workflows. |
arc help --full | Gives you a detailed list of workflows. | No such flag. |
arc --help | Same as arc help. | Same as arc. Plan: same as arc help. |
arc help <workflow> | Full workflow help. | Full workflow help. |
arc <workflow> --help | As above. | As above. |
Overall this is largely the same and lets us delete a bunch of code.