aboutsummaryrefslogtreecommitdiffstats
path: root/CommandLineInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CommandLineInterface.cpp')
-rw-r--r--CommandLineInterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp
index d21839f1..cb924d9b 100644
--- a/CommandLineInterface.cpp
+++ b/CommandLineInterface.cpp
@@ -419,9 +419,9 @@ void CommandLineInterface::actOnInput()
cout << endl << "======= " << contract << " =======" << endl;
// do we need EVM assembly?
- if (m_args.count(g_argAsmStr))
+ if (m_args.count(g_argAsmStr) || m_args.count(g_argAsmJsonStr))
{
- auto choice = m_args[g_argAsmStr].as<OutputType>();
+ auto choice = m_args.count(g_argAsmStr) ? m_args[g_argAsmStr].as<OutputType>() : m_args[g_argAsmJsonStr].as<OutputType>();
if (outputToStdout(choice))
{
cout << "EVM assembly:" << endl;