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

Unified Diff: pkg/intl/test/message_extraction/make_hardcoded_translation.dart

Issue 13898014: Allow suppressing message extraction warnings, providing a prefix for generated files, and format w… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More fixes Created 7 years, 8 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
Index: pkg/intl/test/message_extraction/make_hardcoded_translation.dart
diff --git a/pkg/intl/test/message_extraction/make_hardcoded_translation.dart b/pkg/intl/test/message_extraction/make_hardcoded_translation.dart
index 3f7977c24fdb2d668409c1dc4dcf360ed312a8d9..f936f11e7056860d943b116eb1fd858f741fecf4 100644
--- a/pkg/intl/test/message_extraction/make_hardcoded_translation.dart
+++ b/pkg/intl/test/message_extraction/make_hardcoded_translation.dart
@@ -13,7 +13,7 @@
import 'dart:io';
import 'dart:json' as json;
import 'package:pathos/path.dart' as path;
-import 'find_output_directory.dart';
+import 'package:args/args.dart';
/** A list of the French translations that we will produce. */
var french = {
@@ -95,8 +95,11 @@ main() {
'[originalFile.dart]');
exit(0);
}
+ var parser = new ArgParser();
+ parser.addOption("output-dir", defaultsTo: '.',
+ callback: (value) => targetDir = value);
+ parser.parse(args);
- targetDir = findOutputDirectory(args);
var fileArgs = args.where((x) => x.contains('.json'));
var messages = json.parse(new File(fileArgs.first).readAsStringSync());

Powered by Google App Engine
This is Rietveld 408576698