Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit 5209d28

Browse files
committed
bug #167 Allow to execute the symfony demo command repeatedly (javiereguiluz)
This PR was merged into the 1.0-dev branch. Discussion ---------- Allow to execute the `symfony demo` command repeatedly If `-> addArgument()` provides a default value for the `directory` argument, then the `!$input->getArgument('directory')` instruction will never be `true`. The result is that you cannot execute the `symfony demo` command repeatedly as you could in the previous versions: ![symfony_demo](https://cloud.githubusercontent.com/assets/73419/8076829/b62051c8-0f50-11e5-9d58-eb9ca33735d0.png) Commits ------- 182babb Allow to execute the `symfony demo` command repeatedly
2 parents eda6c68 + 182babb commit 5209d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Installer/DemoCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function configure()
3030
{
3131
$this
3232
->setName('demo')
33-
->addArgument('directory', InputArgument::OPTIONAL, 'Directory where the new project will be created.', 'symfony_demo')
33+
->addArgument('directory', InputArgument::OPTIONAL, 'Directory where the new project will be created.')
3434
->setDescription('Creates a demo Symfony project.')
3535
;
3636
}

0 commit comments

Comments
 (0)