mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2024-12-02 20:17:03 -05:00
Expose the "only" option
This commit is contained in:
parent
139e0405aa
commit
efa4546534
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,9 @@ program
|
||||||
'commit message', 'Updates')
|
'commit message', 'Updates')
|
||||||
.option('-t, --dotfiles', 'Include dotfiles')
|
.option('-t, --dotfiles', 'Include dotfiles')
|
||||||
.option('-a, --add', 'Only add, and never remove existing files.')
|
.option('-a, --add', 'Only add, and never remove existing files.')
|
||||||
|
.option('-l, --only <pattern>',
|
||||||
|
'Only remove files that match the given pattern ' +
|
||||||
|
'(ignored if used together with --add).', '.')
|
||||||
.option('-n, --no-push', 'Commit only (with no push)')
|
.option('-n, --no-push', 'Commit only (with no push)')
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
|
||||||
|
@ -32,6 +35,7 @@ ghpages.publish(path.join(process.cwd(), program.dist), {
|
||||||
message: program.message,
|
message: program.message,
|
||||||
dotfiles: !!program.dotfiles,
|
dotfiles: !!program.dotfiles,
|
||||||
add: !!program.add,
|
add: !!program.add,
|
||||||
|
only: program.only,
|
||||||
remote: program.remote,
|
remote: program.remote,
|
||||||
push: !program.noPush,
|
push: !program.noPush,
|
||||||
logger: function(message) {
|
logger: function(message) {
|
||||||
|
|
Loading…
Reference in a new issue