]> khamidou — GitHub mirrors - arcanist.git/commit
Improve handling of options for `arc` workflows
authorJoshua Spence <josh@joshuaspence.com>
Thu, 22 Jan 2015 20:07:37 +0000 (07:07 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Thu, 22 Jan 2015 20:07:37 +0000 (07:07 +1100)
commit937861ce58c93fbeebe417800f1caa67b00b3ef0
tree29e17715b154b94878a2bffb301ac83bdcfe7f77
parent1cc8f3f377f6ccc680b1062494ba2b90709655ce
Improve handling of options for `arc` workflows

Summary: Allow `--severity=warning` to mean the same as `--severity warning`. Longer term, we should convert this code to use `PhutilArgumentParser`, although it doesn't seem that `PhutilArgumentParser` support British spelling ;)

Test Plan: Ran `arc lint --severity=warning`. Also `var_dump`ed `$args` to make sure it looked reasonable.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11464
src/workflow/ArcanistWorkflow.php