Index: lib/src/command/global_run.dart |
diff --git a/lib/src/command/global_run.dart b/lib/src/command/global_run.dart |
index 7fc07a7aa5792794506057705746ac7e8bb946c2..bdd9bcd625e96e92274bf97f0b8c15ec0886e455 100644 |
--- a/lib/src/command/global_run.dart |
+++ b/lib/src/command/global_run.dart |
@@ -26,6 +26,8 @@ class GlobalRunCommand extends PubCommand { |
BarbackMode get mode => new BarbackMode(argResults["mode"]); |
GlobalRunCommand() { |
+ argParser.addFlag("checked", abbr: "c", negatable: false, |
nweiz
2015/08/06 00:08:28
Why not make this negatable? The VM supports --no-
Bob Nystrom
2015/08/06 16:54:42
TIL. Done.
|
+ help: "Enable runtime type checks and assertions."); |
argParser.addOption("mode", defaultsTo: "release", |
help: 'Mode to run transformers in.'); |
} |
@@ -48,14 +50,12 @@ class GlobalRunCommand extends PubCommand { |
var args = argResults.rest.skip(1).toList(); |
if (p.split(executable).length > 1) { |
- // TODO(nweiz): Use adjacent strings when the new async/await compiler |
- // lands. |
- usageException('Cannot run an executable in a subdirectory of a global ' + |
+ usageException('Cannot run an executable in a subdirectory of a global ' |
'package.'); |
} |
var exitCode = await globals.runExecutable(package, executable, args, |
- mode: mode); |
+ checked: argResults["checked"], mode: mode); |
await flushThenExit(exitCode); |
} |
} |