diff --git a/src/autoload.php b/src/autoload.php index 5dc2ea5..1abfa60 100644 --- a/src/autoload.php +++ b/src/autoload.php @@ -1,3 +1,3 @@ command( 'greet name [--yell]', function ($name, $yell, OutputInterface $output) { +// bin/silly __single --yell -- aubrey +$app->command( '__single [name] [--yell]', function ( $name, $yell, OutputInterface $output ) { if ( ! $yell ) { return false; @@ -23,4 +24,7 @@ $output->writeln( $name ); } ); +// When you set a default command, you cannot run sub-commands normally. +$app->setDefaultCommand( '__single', true ); + $app->run(); \ No newline at end of file