@@ -27,7 +27,7 @@ protected function configure()
2727 ->addArgument ('name ' , InputArgument::REQUIRED )
2828 ->addOption ('dev ' , null , InputOption::VALUE_NONE , 'Installs the latest "development" release ' )
2929 ->addOption ('git ' , null , InputOption::VALUE_NONE , 'Initialize a Git repository ' )
30- ->addOption ('github ' , null , InputOption::VALUE_OPTIONAL , 'Create a new repository on GitHub ' )
30+ ->addOption ('github ' , null , InputOption::VALUE_OPTIONAL , 'Create a new repository on GitHub ' , false )
3131 ->addOption ('jet ' , null , InputOption::VALUE_NONE , 'Installs the Laravel Jetstream scaffolding ' )
3232 ->addOption ('stack ' , null , InputOption::VALUE_OPTIONAL , 'The Jetstream stack that should be installed ' )
3333 ->addOption ('teams ' , null , InputOption::VALUE_NONE , 'Indicates whether Jetstream should be scaffolded with team support ' )
@@ -123,15 +123,15 @@ protected function execute(InputInterface $input, OutputInterface $output)
123123 );
124124 }
125125
126- if ($ input ->hasOption ('git ' ) || $ input ->hasOption ('github ' )) {
126+ if ($ input ->getOption ('git ' ) || $ input ->getOption ('github ' ) !== false ) {
127127 $ this ->createRepository ($ directory , $ input , $ output );
128128 }
129129
130130 if ($ installJetstream ) {
131131 $ this ->installJetstream ($ directory , $ stack , $ teams , $ input , $ output );
132132 }
133133
134- if ($ input ->hasOption ('github ' )) {
134+ if ($ input ->getOption ('github ' ) !== false ) {
135135 $ this ->pushToGitHub ($ name , $ directory , $ input , $ output );
136136 }
137137
@@ -226,7 +226,7 @@ protected function createRepository(string $directory, InputInterface $input, Ou
226226 */
227227 protected function commitChanges (string $ message , string $ directory , InputInterface $ input , OutputInterface $ output )
228228 {
229- if (! $ input ->hasOption ('git ' ) && ! $ input ->hasOption ('github ' )) {
229+ if (! $ input ->getOption ('git ' ) && $ input ->getOption ('github ' ) === false ) {
230230 return ;
231231 }
232232
0 commit comments