@@ -108,12 +108,17 @@ trial user is more limited in the features it provides.
108108Options:
109109 --debug Provide additional debug output.
110110 --delay Provide a minimum delay. The default is
111- 40 seconds.
111+ 45 seconds.
112112 --full Perform full (in-depth) analysis. The default is
113113 a quick analysis.
114- --timeout *s* ,
114+ --timeout *s*
115115 Limit MythX analyses time to *s* seconds.
116- The default is 120 seconds (two minutes).
116+ The default is 300 seconds (5 minutes) for
117+ a quick analysis and 5 hours for a
118+ full analysis
119+ --no-cache-lookup
120+ force a new analysis even if there is a cached
121+ result which matches that passed data
117122
118123 --help Show this help and exit
119124 --version show armlet version and exit
@@ -128,13 +133,16 @@ Options:
128133
129134const minimist = requireOrExit ( 'minimist' )
130135let args = minimist ( process . argv . slice ( 2 ) , {
131- boolean : [ 'debug' , 'full' , 'quick' , 'timeout' , 'version' ] ,
136+ boolean : [ 'debug' , 'full' , 'quick' , 'timeout' , 'version' ,
137+ 'cache-lookup' ] ,
132138 alias : {
133139 h : 'help' , '?' : 'help' ,
134140 t : 'timeout' ,
135141 V : 'version'
136142 } ,
137- default : { debug : false , delay : 40 , timeout : 120 } ,
143+ default : { debug : false , delay : 45 ,
144+ timeout : 300 , 'cache-lookup' : true
145+ } ,
138146 '--' : true ,
139147 stopEarly : true , /* populate _ with first non-option */
140148 // unknown: function () { ... } /* invoked on unknown param */
@@ -200,10 +208,11 @@ if (inputPath.endsWith('.sol')) {
200208data . analysisMode = ( args . quick || ! args . full ) ? 'quick' : 'full'
201209
202210const analyzeOptions = {
203- // Setting client tool tracking so we can get stastics on tool use
211+ // Setting client tool tracking so we can get counts on tool use
204212 clientToolName : 'mythx-analysis' ,
205213 debug : args . debug ,
206214 data : data ,
215+ noCacheLookup : ! args [ 'cache-lookup' ] ,
207216
208217 // How long to wait initially before polling for results
209218 initialDelay : args . delay * 1000 ,
0 commit comments