Merge pull request #75 from tschaub/only

Expose a "remove" option to the CLI
This commit is contained in:
Tim Schaub 2016-04-24 12:40:41 -06:00
commit f6bc5fb9c8

View file

@ -21,6 +21,9 @@ program
'commit message', 'Updates')
.option('-t, --dotfiles', 'Include dotfiles')
.option('-a, --add', 'Only add, and never remove existing files.')
.option('-v, --remove <pattern>',
'Remove files that match the given pattern ' +
'(ignored if used together with --add).', '.')
.option('-n, --no-push', 'Commit only (with no push)')
.parse(process.argv);
@ -32,6 +35,7 @@ ghpages.publish(path.join(process.cwd(), program.dist), {
message: program.message,
dotfiles: !!program.dotfiles,
add: !!program.add,
only: program.remove,
remote: program.remote,
push: !program.noPush,
logger: function(message) {