diff --git a/cli.js b/cli.js index 2dec334..0ef3391 100644 --- a/cli.js +++ b/cli.js @@ -1,13 +1,12 @@ #!/usr/bin/env node const argv = require('yargs') - .usage('Usage: $0 --token [string] --o [string]') - .demandOption(['token', 'owner', 'repo', 'base-branch']) + .demandOption(['token', 'owner', 'repo']) .argv const run = require('./index') -const {token, owner, repo, baseBranch} = argv +const {token, owner, repo} = argv -run({token, owner, repo, baseBranch}) +run({token, owner, repo}) .then((pullRequest) => { console.log(`The PR for the release-management bump has been opened at ${pullRequest.data.html_url}`)