From 8f4153c42c44d379fa6a17ea8a2704d62ce50918 Mon Sep 17 00:00:00 2001 From: Christopher Van Date: Wed, 23 Sep 2015 12:22:14 -0700 Subject: [PATCH] support `--repo` CLI option --- bin/gh-pages | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/gh-pages b/bin/gh-pages index 34e4005..31243e1 100755 --- a/bin/gh-pages +++ b/bin/gh-pages @@ -10,6 +10,8 @@ program 'base directory for all source files') .option('-s, --src ', 'pattern used to select which files should be published', '**/*') + .option('-r, --repo ', + 'URL of the repository you\'ll be pushing to') .option('-b, --branch ', 'name of the branch you\'ll be pushing to', 'gh-pages') .option('-t, --dotfiles', 'Include dotfiles') @@ -17,6 +19,7 @@ program .parse(process.argv); ghpages.publish(path.join(process.cwd(), program.dist), { + repo: program.repo, branch: program.branch, src: program.src, dotfiles: !!program.dotfiles,