diff --git a/src/src/Commands/Backend/SwitchBackend.php b/src/src/Commands/Backend/SwitchBackend.php index ebe0344a..d17daf3a 100644 --- a/src/src/Commands/Backend/SwitchBackend.php +++ b/src/src/Commands/Backend/SwitchBackend.php @@ -24,14 +24,15 @@ public function __construct( ManagerBackend $manager_backend ) { protected function configure() { $this ->setDescription( 'Switch to another Manager Backend.' ) - ->addArgument( 'backend', InputArgument::OPTIONAL, '(Optional) The backend to switch to.' ); + ->addArgument( 'backend', InputArgument::OPTIONAL, '(Optional) The backend to switch to.' ) + ->setAliases( [ 'switch' ] ); } protected function execute( InputInterface $input, OutputInterface $output ): int { // Optionaly allow the environment to be passed as an argument. if ( ! empty( $input->getArgument( 'backend' ) ) ) { $this->manager_backend->switch_to_manager_backend( strtolower( $input->getArgument( 'backend' ) ) ); - $output->writeln( sprintf( 'Manager backend switched to %s.', $input->getArgument( 'backend' ) ) ); + $output->writeln( sprintf( 'Backend switched to "%s".', $input->getArgument( 'backend' ) ) ); return Command::SUCCESS; }