Closed 0xalpharush closed 2 years ago
Running solc --help causes subprocess to raise subprocess.CalledProcessError because check=True is passed. We either need to check whether the first arg is --help or remove check=True so that one can run solc --help. https://github.com/crytic/solc-select/blob/1f72897dc890ce112da60cf1beebe6bee749ec2f/solc_select/__main__.py#L87
solc --help
subprocess.CalledProcessError
check=True
--help
Running
solc --help
causes subprocess to raisesubprocess.CalledProcessError
becausecheck=True
is passed. We either need to check whether the first arg is--help
or removecheck=True
so that one can runsolc --help
. https://github.com/crytic/solc-select/blob/1f72897dc890ce112da60cf1beebe6bee749ec2f/solc_select/__main__.py#L87