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

Allow silencing output #578

Merged
merged 3 commits into from
Oct 10, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
handle q(uiet) flag
  • Loading branch information
CruzMolina committed Oct 9, 2018
commit 13aeef2fa275c108cdac5cfa24afb334bf1d45bb
7 changes: 7 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ if (typeof argv.unlock == "string") {

var logger = console;

// If quiet argument passed, no output
if (argv.q === true){
logger = {
log: function() {}
};
}

// If the mem argument is passed, only show memory output,
// not transaction history.
if (argv.mem === true) {
Expand Down