Skip to content

Commit 46f73d3

Browse files
author
Greg Bowler
committed
Use default command argument
1 parent 59254d8 commit 46f73d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/build

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Gt\Build\Command\RunCommand;
44
use Gt\Cli\Application;
55
use Gt\Cli\Argument\ArgumentList;
6+
use Gt\Cli\Argument\CommandArgumentList;
67

78
$autoloadLocations = [
89
implode(DIRECTORY_SEPARATOR, [
@@ -29,8 +30,7 @@ foreach($autoloadLocations as $location) {
2930

3031
$application = new Application(
3132
"Client-side build system",
32-
new ArgumentList(...$argv),
33+
new CommandArgumentList("run", ...$argv),
3334
new RunCommand()
3435
);
35-
$application->setDefaultCommand("run");
3636
$application->run();

0 commit comments

Comments
 (0)