diff options
author | chriseth <chris@ethereum.org> | 2018-05-24 00:11:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 00:11:20 +0800 |
commit | 5ee2ce353edfddbf925e775b321247246d150593 (patch) | |
tree | 5803f4c77e989f9b778d3702e82cdcfc8a897e0a /solc | |
parent | 6d08341942763730ba19c882520a4f45bb350b20 (diff) | |
parent | 87a838583290d66f4d4d78149a6d7398a41750ec (diff) | |
download | dexon-solidity-5ee2ce353edfddbf925e775b321247246d150593.tar.gz dexon-solidity-5ee2ce353edfddbf925e775b321247246d150593.tar.zst dexon-solidity-5ee2ce353edfddbf925e775b321247246d150593.zip |
Merge pull request #4067 from ethereum/050
[BREAKING] Version 0.5.0
Diffstat (limited to 'solc')
-rw-r--r-- | solc/CommandLineInterface.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 1f04c68a..89ac8806 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -404,9 +404,7 @@ bool CommandLineInterface::readInputFilesAndConfigureRemappings() { bool ignoreMissing = m_args.count(g_argIgnoreMissingFiles); bool addStdin = false; - if (!m_args.count(g_argInputFile)) - addStdin = true; - else + if (m_args.count(g_argInputFile)) for (string path: m_args[g_argInputFile].as<vector<string>>()) { auto eq = find(path.begin(), path.end(), '='); @@ -450,6 +448,11 @@ bool CommandLineInterface::readInputFilesAndConfigureRemappings() } if (addStdin) m_sourceCodes[g_stdinFileName] = dev::readStandardInput(); + if (m_sourceCodes.size() == 0) + { + cerr << "No input files given. If you wish to use the standard input please specify \"-\" explicity." << endl; + return false; + } return true; } |