aboutsummaryrefslogtreecommitdiffstats
path: root/CommandLineInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CommandLineInterface.cpp')
-rw-r--r--CommandLineInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp
index cb924d9b..18201570 100644
--- a/CommandLineInterface.cpp
+++ b/CommandLineInterface.cpp
@@ -430,7 +430,7 @@ void CommandLineInterface::actOnInput()
if (outputToFile(choice))
{
- ofstream outFile(contract + ".evm");
+ ofstream outFile(contract + (m_args.count(g_argAsmJsonStr) ? "_evm.json" : ".evm"));
m_compiler->streamAssembly(outFile, contract, m_sourceCodes, m_args.count(g_argAsmJsonStr));
outFile.close();
}