Skip to content

Commit

Permalink
Merge pull request #26 from n1k0/cli-add-option
Browse files Browse the repository at this point in the history
Added support for the --add option to cli.
  • Loading branch information
tschaub committed Oct 29, 2015
2 parents f7806f9 + 84d8d64 commit 391ef97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/gh-pages
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ program
.option('-b, --branch <branch>',
'name of the branch you\'ll be pushing to', 'gh-pages')
.option('-t, --dotfiles', 'Include dotfiles')
.option('-a, --add', 'Only add, and never remove existing files.')
.parse(process.argv);

ghpages.publish(path.join(process.cwd(), program.dist), {
branch: program.branch,
src: program.src,
dotfiles: !!program.dotfiles,
add: !!program.add,
logger: function(message) {
console.log(message);
}
Expand Down

0 comments on commit 391ef97

Please sign in to comment.