mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add readStandardInput helper
This commit is contained in:
+1
-8
@@ -118,14 +118,7 @@ int main(int argc, char** argv)
|
||||
|
||||
string src;
|
||||
if (infile.empty())
|
||||
{
|
||||
string s;
|
||||
while (!cin.eof())
|
||||
{
|
||||
getline(cin, s);
|
||||
src.append(s);
|
||||
}
|
||||
}
|
||||
src = readStandardInput();
|
||||
else
|
||||
src = readFileAsString(infile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user