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

Unified Diff: frog/frog_options.dart

Issue 8823010: frog: life is better with colors :) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 9 years 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 | « frog/frog.py ('k') | frog/minfrog » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/frog_options.dart
diff --git a/frog/frog_options.dart b/frog/frog_options.dart
index 02c04357a816a0d7ce71a81ea8513b9382f4a694..6eb5cc8ab5ef62190b6c2ad0ed3759771919346d 100644
--- a/frog/frog_options.dart
+++ b/frog/frog_options.dart
@@ -44,6 +44,7 @@ class FrogOptions {
bool throwOnFatal = false;
bool showInfo = false;
bool showWarnings = true;
+ bool useColors = true;
/**
* Options to be used later for passing to the generated code. These are all
@@ -67,74 +68,77 @@ class FrogOptions {
// Start from 2 to skip arguments representing the compiler command
// (node/python followed by frogsh/frog.py).
- // TODO(jimhug): break on switch cases seems broken?
loop: for (int i = 2; i < args.length; i++) {
var arg = args[i];
switch (arg) {
case '--enable_leg':
enableLeg = true;
- continue loop;
+ break;
case '--leg_only':
enableLeg = true;
legOnly = true;
- continue loop;
+ break;
case '--enable_asserts':
enableAsserts = true;
- continue loop;
+ break;
case '--enable_type_checks':
enableTypeChecks = true;
// This flag also enables asserts in VM
enableAsserts = true;
- continue loop;
+ break;
case '--verify_implements':
verifyImplements = true;
- continue loop;
+ break;
case '--compile_all':
compileAll = true;
- continue loop;
+ break;
case '--diet-parse':
dietParse = true;
- continue loop;
+ break;
case '--ignore-unrecognized-flags':
ignoreUnrecognizedFlags = true;
- continue loop;
+ break;
case '--verbose':
showInfo = true;
- continue loop;
+ break;
case '--suppress_warnings':
showWarnings = false;
- continue loop;
+ break;
case '--warnings_as_errors':
warningsAsErrors = true;
- continue loop;
+ break;
case '--throw_on_errors':
throwOnErrors = true;
- continue loop;
+ break;
case '--throw_on_warnings':
throwOnWarnings = true;
- continue loop;
+ break;
case '--compile-only':
// As opposed to compiling and running, the default behavior.
compileOnly = true;
- continue loop;
+ break;
case '--force_dynamic':
forceDynamic = true;
- continue loop;
+ break;
+
+ case '--no_colors':
+ useColors = false;
+ break;
default:
if (arg.endsWith('.dart')) {
« no previous file with comments | « frog/frog.py ('k') | frog/minfrog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698