Skip to content

Commit

Permalink
bin/globalize-commit: Add date formatter time zone support (amend)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxaviers committed May 24, 2017
1 parent 5a99543 commit 85f75fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/globalize-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function help() {
" -v, --version # Print the version number.",
" -l, --locale LOCALE # Specify a LOCALE to use in compilation.",
" -c, --cldr CLDR_FILE # Optional. All necessary CLDR data for given locale (JSON format).",
" -z, --tz TIMEZONE_DATA_FILE # Optional. All necessary IANA time zone data (JSON format).",
" -m, --messages MESSAGES_FILE # Optional. Translation messages for given locale (JSON format).",
" -o, --output DEST_FILE # Destination JS file, e.g., `app-en.js`.",
""
Expand All @@ -34,6 +35,7 @@ opts = nopt( {
version: Boolean,
locale: String,
cldr: path,
tz: path,
messages: path,
output: path
}, {
Expand All @@ -56,7 +58,7 @@ if ( !opts.locale || !opts.output ) {
}

extraOptions = Object.keys( opts ).filter(function( option ) {
return !/help|version|locale|cldr|messages|output|argv/.test( option );
return !/help|version|locale|cldr|tz|messages|output|argv/.test( option );
});

if ( extraOptions.length ) {
Expand Down

0 comments on commit 85f75fc

Please sign in to comment.