add docs for -h -v

This commit is contained in:
Devon Carew
2016-02-03 00:13:12 -08:00
parent 421cd7c2fb
commit 4200378d3c
2 changed files with 5 additions and 4 deletions

View File

@@ -12,8 +12,7 @@ import 'start.dart';
class ListenCommand extends StartCommandBase {
final String name = 'listen';
final String description =
'Listen for changes to files and reload the running app on all connected devices '
'(Android only).';
'Listen for changes to files and reload the running app (Android only).';
final String usageFooter =
'By default, only listens to "./" and "./lib/". To listen to additional directories, list them on\n'
'the command line.';

View File

@@ -45,8 +45,8 @@ class FlutterCommandRunner extends CommandRunner {
argParser.addOption('package-root',
help: 'Path to your packages directory.$packagesHelp');
argParser.addOption('flutter-root',
help: 'The root directory of the Flutter repository. Defaults to \$$kFlutterRootEnvironmentVariableName if set,\n'
'otherwise defaults to a value derived from the location of this tool.', defaultsTo: _defaultFlutterRoot);
help: 'The root directory of the Flutter repository. Defaults to \$$kFlutterRootEnvironmentVariableName if\n'
'set, otherwise defaults to a value derived from the location of this tool.', defaultsTo: _defaultFlutterRoot);
if (verboseHelp)
argParser.addSeparator('Local build selection options (not normally required):');
@@ -120,6 +120,8 @@ class FlutterCommandRunner extends CommandRunner {
defaultsTo: 'out/ios_sim_Release/');
}
final String usageFooter = 'Run "flutter -h -v" for verbose help output, including less commonly used options.';
List<BuildConfiguration> get buildConfigurations {
if (_buildConfigurations == null)
_buildConfigurations = _createBuildConfigurations(_globalResults);