Skip to content

Commit af3b69c

Browse files
simisonbradyvercher
authored andcommitted
Add exclude option to makepot cli command (#12)
1 parent 119391c commit af3b69c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bin/wpi18n

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var WPPackage = require('../lib/package');
1111
var argv = require('minimist')(process.argv.slice(2), {
1212
string: [
1313
'domain-path',
14+
'exclude',
1415
'main-file',
1516
'pot-file',
1617
'textdomain',
@@ -78,6 +79,7 @@ if (-1 !== argv._.indexOf('makepot')) {
7879

7980
wpi18n.makepot({
8081
domainPath: argv['domain-path'] ? argv['domain-path'] : '',
82+
exclude: argv['exclude'] ? argv['exclude'].split(',') : '',
8183
mainFile: argv['main-file'] ? argv['main-file'] : '',
8284
potHeaders: headers,
8385
potFile: argv['pot-file'] ? argv['pot-file'] : '',

docs/cli.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Options:
1111
-v, --version Display the current version.
1212
-h, --help Display help and usage details.
1313
--domain-path Relative path to the POT file directory.
14-
--main-file Name of the main package file.
14+
--exclude               Exclude directories. Separate multiple directories by comma.
15+
--main-file             Name of the main package file.
1516
--pot-file Name of the POT file.
1617
--type Type of package (plugin or theme).

0 commit comments

Comments
 (0)