crytic / crytic-compile

Abstraction layer for smart contract build systems
GNU Affero General Public License v3.0
154 stars 83 forks source link

--solc-args is broken on single argument #85

Open montyly opened 4 years ago

montyly commented 4 years ago

For example

crytic-compile file.sol --solc-args "--optimize"

will fail, while

crytic-compile file.sol --solc-args "optimize"

works.

But if multiple args are provided the -- is required for every argument:

crytic-compile file.sol --solc-args "--optimize --optimize-runs 100"
duckki commented 1 year ago

Hmm, the situation changed a bit (as of 0.3.0). This doesn't work (any more):

crytic-compile file.sol --solc-args optimize

But, this works:

crytic-compile file.sol --solc-args=--optimize