diff options
author | Yoichi Hirai <yhirai@pira.jp> | 2016-10-07 00:27:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-07 00:27:00 +0800 |
commit | 2bd80056eddd490efc1300d6370cae9f9c9e59d4 (patch) | |
tree | 63a5d3ced15f0334b078ac294b45eac1011dd0fe | |
parent | e69173f910e8454a7dc13f79598e7e9fd5c147c9 (diff) | |
parent | bab96ee1e0b16c4793595bc263829a14fadffbff (diff) | |
download | dexon-solidity-2bd80056eddd490efc1300d6370cae9f9c9e59d4.tar.gz dexon-solidity-2bd80056eddd490efc1300d6370cae9f9c9e59d4.tar.zst dexon-solidity-2bd80056eddd490efc1300d6370cae9f9c9e59d4.zip |
Merge pull request #1165 from ethereum/solc-disallow-unknown
Disallow unknown options in solc
-rw-r--r-- | Changelog.md | 3 | ||||
-rw-r--r-- | solc/CommandLineInterface.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Changelog.md b/Changelog.md index 8e639a2d..0518d3b1 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,9 @@ Features: * Inline assembly: support both `sucide` and `selfdestruct` opcodes (note: `suicide` is deprecated) +Bugfixes: + * Disallow unknown options in `solc` + ### 0.4.2 (2016-09-17) Bugfixes: diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index f0a34632..2013c506 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -471,7 +471,7 @@ Allowed options)", try { po::command_line_parser cmdLineParser(_argc, _argv); - cmdLineParser.options(allOptions).positional(filesPositions).allow_unregistered(); + cmdLineParser.options(allOptions).positional(filesPositions); po::store(cmdLineParser.run(), m_args); } catch (po::error const& _exception) |