File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ var WPPackage = require('../lib/package');
11
11
var argv = require ( 'minimist' ) ( process . argv . slice ( 2 ) , {
12
12
string : [
13
13
'domain-path' ,
14
+ 'exclude' ,
14
15
'main-file' ,
15
16
'pot-file' ,
16
17
'textdomain' ,
@@ -78,6 +79,7 @@ if (-1 !== argv._.indexOf('makepot')) {
78
79
79
80
wpi18n . makepot ( {
80
81
domainPath : argv [ 'domain-path' ] ? argv [ 'domain-path' ] : '' ,
82
+ exclude : argv [ 'exclude' ] ? argv [ 'exclude' ] . split ( ',' ) : '' ,
81
83
mainFile : argv [ 'main-file' ] ? argv [ 'main-file' ] : '' ,
82
84
potHeaders : headers ,
83
85
potFile : argv [ 'pot-file' ] ? argv [ 'pot-file' ] : '' ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Options:
11
11
-v, --version Display the current version.
12
12
-h, --help Display help and usage details.
13
13
--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.
15
16
--pot-file Name of the POT file.
16
17
--type Type of package (plugin or theme).
You can’t perform that action at this time.
0 commit comments