Skip to content

Commit

Permalink
Merge pull request #75 from tschaub/only
Browse files Browse the repository at this point in the history
Expose a "remove" option to the CLI
  • Loading branch information
tschaub committed Apr 24, 2016
2 parents 9f3fdcd + e1a7b85 commit f6bc5fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/gh-pages
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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) {
Expand Down

0 comments on commit f6bc5fb

Please sign in to comment.