From 84d8d649c4571a8b077f6e395f4e1a966f9c79c7 Mon Sep 17 00:00:00 2001 From: Nicolas Perriault Date: Wed, 28 Oct 2015 17:51:39 +0100 Subject: [PATCH] Added support for the --add option to cli. --- bin/gh-pages | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/gh-pages b/bin/gh-pages index 3fa6f30..34e4005 100755 --- a/bin/gh-pages +++ b/bin/gh-pages @@ -13,12 +13,14 @@ program .option('-b, --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); }