Skip to content

Commit 448250f

Browse files
tgetgoodRichardLitt
authored andcommitted
fix: broken flags interaction.
commits and local-dir can't both be active.
1 parent 2fff4ce commit 448250f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ const defaultOpts = opts => {
6565
opts.debug = cli.flags.debug
6666
opts.dryRun = cli.flags.dryRun
6767
opts.verbose = cli.flags.v
68-
opts.commits = cli.flags.commits
69-
opts.reactions = !cli.flags.localDir && cli.flags.reactions
68+
opts.commits = !cli.flags.localDir && cli.flags.commits
69+
opts.reactions = cli.flags.reactions
7070

7171
return opts
7272
}

src/graphql.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const formatQuery = item => '{"query": ' +
8888

8989
// Global debug mode.
9090
let debugMode = false
91+
let reqCounter = 1
9192

9293
/**
9394
* Returns a promise which will yeild a query result.
@@ -131,7 +132,8 @@ const executequery = ({token, query, debug, dryRun, verbose, name}) => {
131132
JSON.stringify(json.data, null, 2))
132133
}
133134
if (verbose) {
134-
console.log('Cost of[' + name + ']: ' +
135+
console.log('Cost of[' + name + ']: (' +
136+
'#' + reqCounter++ + ') ' +
135137
JSON.stringify(json.data.rateLimit))
136138
}
137139

0 commit comments

Comments
 (0)