Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Unified Diff: lib/src/command/run.dart

Issue 1272813003: Support "--checked" in pub run and global run. (Closed) Base URL: https://github.com/dart-lang/pub.git@master
Patch Set: Revise. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/command/global_run.dart ('k') | lib/src/executable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « lib/src/command/global_run.dart ('k') | lib/src/executable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698