Skip to content

Commit 85f75fc

Browse files
committed
bin/globalize-commit: Add date formatter time zone support (amend)
1 parent 5a99543 commit 85f75fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/globalize-compiler.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function help() {
2121
" -v, --version # Print the version number.",
2222
" -l, --locale LOCALE # Specify a LOCALE to use in compilation.",
2323
" -c, --cldr CLDR_FILE # Optional. All necessary CLDR data for given locale (JSON format).",
24+
" -z, --tz TIMEZONE_DATA_FILE # Optional. All necessary IANA time zone data (JSON format).",
2425
" -m, --messages MESSAGES_FILE # Optional. Translation messages for given locale (JSON format).",
2526
" -o, --output DEST_FILE # Destination JS file, e.g., `app-en.js`.",
2627
""
@@ -34,6 +35,7 @@ opts = nopt( {
3435
version: Boolean,
3536
locale: String,
3637
cldr: path,
38+
tz: path,
3739
messages: path,
3840
output: path
3941
}, {
@@ -56,7 +58,7 @@ if ( !opts.locale || !opts.output ) {
5658
}
5759

5860
extraOptions = Object.keys( opts ).filter(function( option ) {
59-
return !/help|version|locale|cldr|messages|output|argv/.test( option );
61+
return !/help|version|locale|cldr|tz|messages|output|argv/.test( option );
6062
});
6163

6264
if ( extraOptions.length ) {

0 commit comments

Comments
 (0)