BlockCatIO / solidity-flattener

A python utility to flatten Solidity code with imports into a single file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple solc paths not supported?

rsxdalv opened this issue · comments

I've tried a number of options, none of which allow specifying multiple solc-paths:
... --solc-paths="a=b,c=d"
... --solc-paths="a=b;c=d"
... --solc-paths="'a=b''c=d'"
... --solc-paths="a=b c=d"
... --solc-paths="a=b" --solc-paths="c=d" (gets overriden)

Better documentation or enabling this feature would help, since solidity itself does support them.

Try comma at end.

This is on the solc side - have never been able to get --allow-paths working without it

Also, because #11 was not merged correctly the --allow-paths flag was dropped.

Here's what I'd try

solidity_flattener --solc-paths "--allow-paths a=b,c=d,"

AFAIK that is the only way you could make it work without patching core.py

solidity_flattener --solc-paths="--allow-paths a=b,c=d,"
This produces a unrecognised option '--allow-paths a=b,c=d,'

+1 can't seem to get this to work using the suggested option.