Skip to content

Commit

Permalink
added --debug key to cli.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Sep 5, 2018
1 parent 024e0e5 commit 0cd3e69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/js/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

let [processPath, , exchangeId, methodName, ... params] = process.argv.filter (x => !x.startsWith ('--'))
, verbose = process.argv.includes ('--verbose')
, debug = process.argv.includes ('--verbose')
, cloudscrape = process.argv.includes ('--cloudscrape')
, cfscrape = process.argv.includes ('--cfscrape')
, poll = process.argv.includes ('--poll')
Expand Down Expand Up @@ -131,6 +132,7 @@ function printSupportedExchanges () {
printSupportedExchanges ()
log ('Supported options:')
log ('--verbose Print verbose output')
log ('--debug Print debugging output')
log ('--cloudscrape Use https://github.com/codemanki/cloudscraper to bypass Cloudflare')
log ('--cfscrape Use https://github.com/Anorov/cloudflare-scrape to bypass Cloudflare (requires python and cfscrape)')
log ('--poll Repeat continuously in rate-limited mode')
Expand Down Expand Up @@ -226,6 +228,10 @@ async function main () {

no_load_markets = no_send ? true : no_load_markets

if (debug) {
exchange.verbose = verbose
}

if (!no_load_markets) {
await exchange.loadMarkets ()
}
Expand Down

0 comments on commit 0cd3e69

Please sign in to comment.