mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
add --set alias to --level, better name
This commit is contained in:
parent
9665d586ce
commit
6ddf372c15
@ -152,6 +152,14 @@ final class Application extends SymfonyApplication
|
||||
$this->getDefaultConfigPath()
|
||||
));
|
||||
|
||||
$inputDefinition->addOption(new InputOption(
|
||||
'set',
|
||||
's',
|
||||
InputOption::VALUE_REQUIRED,
|
||||
'Finds config by shortcut name'
|
||||
));
|
||||
|
||||
// same as "set", for BC
|
||||
$inputDefinition->addOption(new InputOption(
|
||||
'level',
|
||||
'l',
|
||||
|
@ -25,7 +25,7 @@ final class LevelOptionResolver
|
||||
/**
|
||||
* @param string[] $optionNames
|
||||
*/
|
||||
public function __construct(array $optionNames = ['--level', '-l'], string $keyName = 'level')
|
||||
public function __construct(array $optionNames = ['--level', '-l', '--set', '-s'], string $keyName = 'level')
|
||||
{
|
||||
$this->optionNames = $optionNames;
|
||||
$this->keyName = $keyName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user