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 {
RunCommandBase() {
addBuildModeFlags();
// TODO(devoncarew): This flag is ignored, and should be removed once tools
// no longer pass in `--checked`.
argParser.addFlag('checked', negatable: true, hide: true);
// TODO(devoncarew): Remove in favor of --debug/--profile/--release.
argParser.addFlag('checked',
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',
negatable: true,
......@@ -105,7 +108,8 @@ class RunCommand extends RunCommandBase {
options = new DebuggingOptions.disabled();
} else {
options = new DebuggingOptions.enabled(
checked: getBuildMode() == BuildMode.debug,
// TODO(devoncarew): Check this to 'getBuildMode() == BuildMode.debug'.
checked: argResults['checked'],
startPaused: argResults['start-paused'],
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