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

Unified Diff: runtime/bin/main.cc

Issue 12084010: Change option --use_script_snapshot to --use-script-snapshot (easier to type). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 | sdk/bin/dart2js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
===================================================================
--- runtime/bin/main.cc (revision 17682)
+++ runtime/bin/main.cc (working copy)
@@ -149,8 +149,8 @@
if (filename != NULL && strlen(filename) != 0) {
use_script_snapshot = true;
if (generate_script_snapshot) {
- Log::PrintErr("Incompatible options specified --generate_script_snapshot "
- "and --use_script_snapshot\n");
+ Log::PrintErr("Incompatible options specified --generate-script-snapshot "
+ "and --use-script-snapshot\n");
return false;
}
snapshot_file = File::Open(filename, File::kRead);
@@ -173,8 +173,8 @@
return false;
}
if (use_script_snapshot) {
- Log::PrintErr("Incompatible options specified --use_script_snapshot "
- "and --generate_script_snapshot\n");
+ Log::PrintErr("Incompatible options specified --use-script-snapshot "
+ "and --generate-script-snapshot\n");
return false;
}
snapshot_file = File::Open(filename, File::kWriteTruncate);
@@ -205,7 +205,6 @@
{ "--break_at=", ProcessBreakpointOption },
{ "--compile_all", ProcessCompileAllOption },
{ "--debug", ProcessDebugOption },
- { "--use_script_snapshot=", ProcessUseScriptSnapshotOption },
{ "--use-script-snapshot=", ProcessUseScriptSnapshotOption },
{ "--generate-script-snapshot=", ProcessGenScriptSnapshotOption },
{ NULL, NULL }
@@ -545,10 +544,10 @@
" url:<line_num> e.g. test.dart:10\n"
" [<class_name>.]<function_name> e.g. B.foo\n"
"\n"
-"--use_script_snapshot=<file_name>\n"
+"--use-script-snapshot=<file_name>\n"
" executes Dart script present in the specified snapshot file\n"
"\n"
-"--generate_script_snapshot=<file_name>\n"
+"--generate-script-snapshot=<file_name>\n"
" loads Dart script and generates a snapshot in the specified file\n"
"\n"
"The following options are only used for VM development and may\n"
« no previous file with comments | « no previous file | sdk/bin/dart2js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698