diff options
author | Gav Wood <g@ethdev.com> | 2015-08-20 17:02:07 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-08-20 17:02:07 +0800 |
commit | 289b8146703521943e6106e5d3f178deb0117652 (patch) | |
tree | 98acaaccb51dc2a01bd45bd608124a22764da018 /solc/main.cpp | |
parent | 38235cc9e14d442516a73b5a46260ad82255e3ff (diff) | |
parent | 0906042ce05f01c4d371aa98d0fd9dddfb93a196 (diff) | |
download | dexon-solidity-289b8146703521943e6106e5d3f178deb0117652.tar dexon-solidity-289b8146703521943e6106e5d3f178deb0117652.tar.gz dexon-solidity-289b8146703521943e6106e5d3f178deb0117652.tar.bz2 dexon-solidity-289b8146703521943e6106e5d3f178deb0117652.tar.lz dexon-solidity-289b8146703521943e6106e5d3f178deb0117652.tar.xz dexon-solidity-289b8146703521943e6106e5d3f178deb0117652.tar.zst dexon-solidity-289b8146703521943e6106e5d3f178deb0117652.zip |
Merge pull request #7 from chriseth/moreInfoForCommandlineOptions
More information for help screen, some fixes for argument parsing.
Diffstat (limited to 'solc/main.cpp')
-rw-r--r-- | solc/main.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/solc/main.cpp b/solc/main.cpp index c5f72980..eaada1c4 100644 --- a/solc/main.cpp +++ b/solc/main.cpp @@ -21,6 +21,10 @@ */ #include "CommandLineInterface.h" +#include <iostream> +#include <boost/exception/all.hpp> + +using namespace std; int main(int argc, char** argv) { @@ -29,7 +33,15 @@ int main(int argc, char** argv) return 1; if (!cli.processInput()) return 1; - cli.actOnInput(); + try + { + cli.actOnInput(); + } + catch (boost::exception const& _exception) + { + cerr << "Exception during output generation: " << boost::diagnostic_information(_exception) << endl; + return 1; + } return 0; } |