crytic / medusa

Parallelized, coverage-guided, mutational Solidity smart contract fuzzing, powered by go-ethereum
https://www.trailofbits.com/
GNU Affero General Public License v3.0
273 stars 33 forks source link

Print error if unsupported flag is provided #334

Closed bohendo closed 3 months ago

bohendo commented 3 months ago
$ medusa --version
medusa version 0.1.3

$ medusa fuzz --target flags.sol 

$ echo $?
1

If I pass the depreciated --target flag to the latest medusa, it will do nothing unsuccessfully. If we wanted to get fancy, we could print a custom error message for depreciated flags nudging users towards the new ones. But we should at least print a generic warning if medusa failed because it got a flag it didn't recognize.

elopez commented 3 months ago

This should be addressed by https://github.com/crytic/medusa/pull/312