Index: lib/src/command/run.dart |
diff --git a/lib/src/command/run.dart b/lib/src/command/run.dart |
index ad82c7df42c5747494e909e3da32f8138dac8e70..9e60c8162b4a174b04692d80a5d6bb28d957e99d 100644 |
--- a/lib/src/command/run.dart |
+++ b/lib/src/command/run.dart |
@@ -22,6 +22,8 @@ class RunCommand extends PubCommand { |
bool get allowTrailingOptions => false; |
RunCommand() { |
+ argParser.addFlag("checked", abbr: "c", |
+ help: "Enable runtime type checks and assertions."); |
argParser.addOption("mode", |
help: 'Mode to run transformers in.\n' |
'(defaults to "release" for dependencies, "debug" for ' |
@@ -66,7 +68,7 @@ class RunCommand extends PubCommand { |
} |
var exitCode = await runExecutable(entrypoint, package, executable, args, |
- mode: mode); |
+ checked: argResults['checked'], mode: mode); |
await flushThenExit(exitCode); |
} |
} |