@@ -20,17 +20,12 @@ class CreateCommand extends Command {
finalStringname='create';
@override
finalStringdescription='Create a new Flutter project.';
finalStringdescription='Create a new Flutter project.\nIf run on a project that already exists, this will repair the project, recreating any files that are missing.';
@override
finalList<String>aliases=<String>['init'];
CreateCommand(){
argParser.addOption('out',
abbr:'o',
hide:true,
help:'The output directory.'
);
argParser.addFlag('pub',
defaultsTo:true,
help:'Whether to run "pub get" after the project has been created.'
...
...
@@ -41,6 +36,11 @@ class CreateCommand extends Command {
defaultsTo:false,
help:'Also add a flutter_driver dependency and generate a sample \'flutter drive\' test.'
);
argParser.addOption(
'description',
defaultsTo:'A new flutter project.',
help:'The description to use for your new flutter project. This string ends up in the pubspec.yaml file.'
);
}
@override
...
...
@@ -48,12 +48,18 @@ class CreateCommand extends Command {