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

Unified Diff: pkg/intl/bin/generate_from_arb.dart

Issue 414093003: Make deferred loading of message libraries optional (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a new file I had missed Created 6 years, 5 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 | « pkg/intl/CHANGELOG.md ('k') | pkg/intl/lib/generate_localized.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/bin/generate_from_arb.dart
diff --git a/pkg/intl/bin/generate_from_arb.dart b/pkg/intl/bin/generate_from_arb.dart
index 6830fc53dc62fd41660be3fe63265e4508942a01..ec4bc0f195a90d59386d327cbc37c60f9349e253 100644
--- a/pkg/intl/bin/generate_from_arb.dart
+++ b/pkg/intl/bin/generate_from_arb.dart
@@ -40,11 +40,14 @@ main(List<String> args) {
callback: (x) => targetDir = x);
parser.addOption("generated-file-prefix", defaultsTo: '',
callback: (x) => generatedFilePrefix = x);
+ parser.addFlag("use-deferred-loading", defaultsTo: true,
+ callback: (x) => useDeferredLoading = x);
parser.parse(args);
var dartFiles = args.where((x) => x.endsWith("dart")).toList();
var jsonFiles = args.where((x) => x.endsWith(".arb")).toList();
if (dartFiles.length == 0 || jsonFiles.length == 0) {
print('Usage: generate_from_arb [--output-dir=<dir>]'
+ ' [--[no-]use-deferred-loading]'
' [--generated-file-prefix=<prefix>] file1.dart file2.dart ...'
' translation1_<languageTag>.arb translation2.arb ...');
exit(0);
« no previous file with comments | « pkg/intl/CHANGELOG.md ('k') | pkg/intl/lib/generate_localized.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698