Commit 6635f1cf authored by Devon Carew's avatar Devon Carew

re-enable --checked (#3857)

parent 82dbd43e
...@@ -23,9 +23,12 @@ abstract class RunCommandBase extends FlutterCommand { ...@@ -23,9 +23,12 @@ abstract class RunCommandBase extends FlutterCommand {
RunCommandBase() { RunCommandBase() {
addBuildModeFlags(); addBuildModeFlags();
// TODO(devoncarew): This flag is ignored, and should be removed once tools // TODO(devoncarew): Remove in favor of --debug/--profile/--release.
// no longer pass in `--checked`. argParser.addFlag('checked',
argParser.addFlag('checked', negatable: true, hide: true); negatable: true,
defaultsTo: true,
help: 'Run the application in checked ("slow") mode.\n'
'Note: this flag will be removed in favor of the --debug/--profile/--release flags.');
argParser.addFlag('trace-startup', argParser.addFlag('trace-startup',
negatable: true, negatable: true,
...@@ -105,7 +108,8 @@ class RunCommand extends RunCommandBase { ...@@ -105,7 +108,8 @@ class RunCommand extends RunCommandBase {
options = new DebuggingOptions.disabled(); options = new DebuggingOptions.disabled();
} else { } else {
options = new DebuggingOptions.enabled( options = new DebuggingOptions.enabled(
checked: getBuildMode() == BuildMode.debug, // TODO(devoncarew): Check this to 'getBuildMode() == BuildMode.debug'.
checked: argResults['checked'],
startPaused: argResults['start-paused'], startPaused: argResults['start-paused'],
observatoryPort: debugPort observatoryPort: debugPort
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment