Skip to content

Commit

Permalink
fix: broken flags interaction.
Browse files Browse the repository at this point in the history
commits and local-dir can't both be active.
  • Loading branch information
tgetgood authored and RichardLitt committed Dec 14, 2017
1 parent 2fff4ce commit 448250f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ const defaultOpts = opts => {
opts.debug = cli.flags.debug
opts.dryRun = cli.flags.dryRun
opts.verbose = cli.flags.v
opts.commits = cli.flags.commits
opts.reactions = !cli.flags.localDir && cli.flags.reactions
opts.commits = !cli.flags.localDir && cli.flags.commits
opts.reactions = cli.flags.reactions

return opts
}
Expand Down
4 changes: 3 additions & 1 deletion src/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const formatQuery = item => '{"query": ' +

// Global debug mode.
let debugMode = false
let reqCounter = 1

/**
* Returns a promise which will yeild a query result.
Expand Down Expand Up @@ -131,7 +132,8 @@ const executequery = ({token, query, debug, dryRun, verbose, name}) => {
JSON.stringify(json.data, null, 2))
}
if (verbose) {
console.log('Cost of[' + name + ']: ' +
console.log('Cost of[' + name + ']: (' +
'#' + reqCounter++ + ') ' +
JSON.stringify(json.data.rateLimit))
}

Expand Down

0 comments on commit 448250f

Please sign in to comment.