diff --git a/src/RollCommand.php b/src/RollCommand.php index 7f6ca1d..2f0eb11 100644 --- a/src/RollCommand.php +++ b/src/RollCommand.php @@ -13,12 +13,13 @@ class RollCommand extends Command protected function configure() { - $this->setName("roll") - ->setDescription("Rolls fair dice.") - ->addArgument('Dice String', InputArgument::REQUIRED, 'e.g.: 2d6, 1d20+4') - ->addOption('h', null, InputOption::VALUE_NONE, 'Roll the dice with a bias towards higher numbers') - ->addOption('l', null, InputOption::VALUE_NONE, 'Roll the dice with a bias towards lower numbers') - ->addOption('f', null, InputOption::VALUE_REQUIRED, 'The factor of the weight', 2) + $this + ->setName("roll") + ->setDescription("Rolls fair dice.") + ->addArgument('Dice String', InputArgument::REQUIRED, 'e.g.: 2d6, 1d20+4') + ->addOption('h', null, InputOption::VALUE_NONE, 'Roll the dice with a bias towards higher numbers') + ->addOption('l', null, InputOption::VALUE_NONE, 'Roll the dice with a bias towards lower numbers') + ->addOption('f', null, InputOption::VALUE_REQUIRED, 'The factor of the weight', 2) ; }