diff --git a/bin/gh-pages b/bin/gh-pages index 73a2979..998f77d 100755 --- a/bin/gh-pages +++ b/bin/gh-pages @@ -18,6 +18,7 @@ program 'commit message', 'Updates') .option('-t, --dotfiles', 'Include dotfiles') .option('-a, --add', 'Only add, and never remove existing files.') + .option('-n, --no-push', 'Commit only (with no push)') .parse(process.argv); ghpages.publish(path.join(process.cwd(), program.dist), { @@ -27,6 +28,7 @@ ghpages.publish(path.join(process.cwd(), program.dist), { message: program.message, dotfiles: !!program.dotfiles, add: !!program.add, + push: !program.noPush, logger: function(message) { process.stderr.write(message + '\n'); }