From 265595392c25854938e6ce0db07a182508a203c5 Mon Sep 17 00:00:00 2001 From: Andrew Brampton Date: Sat, 26 Mar 2016 08:48:52 -0700 Subject: [PATCH] Added parsing of the maxBlockDuration config from the command line. --- bin/cli.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/cli.js b/bin/cli.js index dade70a..eb25a12 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -20,6 +20,7 @@ help = '' + '\n -d, --deps dependency paths - files required before code (space separated)' + '\n -l, --log logging options, json have to be used' + '\n --cov create tests coverage report' + + '\n --timeout max block duration (in ms)' + '\n -h, --help show this help' + '\n -v, --version show module version' + '\n'; @@ -84,6 +85,9 @@ for (var key in args) { case '--paths': o.paths = args[key]; break; + case '--timeout': + o.maxBlockDuration = args[key]; + break; case '-v': case '--version': util.print(