From efa454653405e9fd98d8b25ecd1fe042124b2f8b Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 13 Apr 2016 08:46:36 -0600 Subject: [PATCH] Expose the "only" option --- bin/gh-pages | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/gh-pages b/bin/gh-pages index e5305d3..6c60696 100755 --- a/bin/gh-pages +++ b/bin/gh-pages @@ -21,6 +21,9 @@ program 'commit message', 'Updates') .option('-t, --dotfiles', 'Include dotfiles') .option('-a, --add', 'Only add, and never remove existing files.') + .option('-l, --only ', + 'Only 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.only, remote: program.remote, push: !program.noPush, logger: function(message) {