mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Handle arc --version
.
Summary: It seems reasonable to transform `arc --version` into `arc version`. The version command is similar to the help command in that it is a command that users unfamiliar with Arcanist will probably try to run at some stage. Test Plan: Ran `arc --version`. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9274
This commit is contained in:
parent
b7bb6c8348
commit
2881686407
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ class ArcanistConfiguration {
|
|||
// Special-case "arc --help" to behave like "arc help" instead of telling
|
||||
// you to type "arc help" without being helpful.
|
||||
$command = 'help';
|
||||
} else if ($command == '--version') {
|
||||
// Special-case "arc --version" to behave like "arc version".
|
||||
$command = 'version';
|
||||
}
|
||||
|
||||
return idx($this->buildAllWorkflows(), $command);
|
||||
|
|
Loading…
Reference in a new issue