]> khamidou — GitHub mirrors - arcanist.git/commit
Parse "--help" correctly in `arc`
authorepriestley <git@epriestley.com>
Thu, 22 Nov 2012 16:36:28 +0000 (08:36 -0800)
committerepriestley <git@epriestley.com>
Thu, 22 Nov 2012 16:36:28 +0000 (08:36 -0800)
commitdb25adb0690e2296b142c4ddc583fcce97f30ef8
tree60b585998f2fd0fc71f5d5a71b8aa743fb4ea5ed
parentcd7f86d380af759e63eb90b675909df2ab2fde44
Parse "--help" correctly in `arc`

Summary:
We delegate parsing to `PhutilArgumentParser` but then skip the parts of the code which do something with this flag.

In particular, `arc --help list` just runs `arc list`.

See https://github.com/facebook/arcanist/issues/58

Test Plan: Ran `arc --help`, `arc list --help`, `arc --help list`, `arc --help help --help`. Got expected help in all cases.

Reviewers: vrana, chad, btrahan

Reviewed By: chad

CC: aran
Differential Revision: https://secure.phabricator.com/D4023
scripts/arcanist.php