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

Unified Diff: runtime/bin/main.cc

Issue 15724022: Require exact match of vm arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Style cleanup. Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index d2bcdba02266c10402d97703a03362785fe4daf4..9081f70cdd2aaf8810c4716633120ae2b51519da 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -263,10 +263,9 @@ static bool ProcessMainOptions(const char* option) {
while (name != NULL) {
int length = strlen(name);
if ((option_length >= length) && (strncmp(option, name, length) == 0)) {
- if (!main_options[i].process(option + length)) {
- Log::PrintErr("Invalid option specification : '%s'\n", option);
+ if (main_options[i].process(option + length)) {
+ return true;
}
- return true;
}
i += 1;
name = main_options[i].option_name;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698