Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Small tweaks to --no-progress option
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Feb 15, 2019
1 parent 1920793 commit a14c4d1
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 78 deletions.
10 changes: 5 additions & 5 deletions helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ Options:
The default is ${defaultAnalyzeRateLimit} contracts, the maximum value, but you can
set this lower.
--version Show package and MythX version information.
--noprogress
Not display progress bars during analysis.
--no-progress
Do not display progress bars during analysis.
`;
// FIXME: decide if this is okay or whether we need
// to pass in `config` and use `config.logger.log`.
Expand Down Expand Up @@ -179,7 +179,7 @@ const doAnalysis = async (client, config, jsonFiles, contractNames = null, limit
/**
* Prepare for progress bar
*/
const progress = !config.noprogress;
const progress = config.progress;
let multi;
let indent;
if (progress) {
Expand All @@ -190,7 +190,7 @@ const doAnalysis = async (client, config, jsonFiles, contractNames = null, limit
const contractName = buildObj.contractName;
contractNameLengths.push(contractName.length);
}));
indent = Math.max(...contractNameLengths);
indent = Math.max(...contractNameLengths);
}

/**
Expand All @@ -212,7 +212,7 @@ const doAnalysis = async (client, config, jsonFiles, contractNames = null, limit
}

const obj = new MythXIssues(buildObj);

const timeout = (config.timeout || 120) * 1000;

let analyzeOpts = {
Expand Down

0 comments on commit a14c4d1

Please sign in to comment.