diff --git a/Unvirt/CmdHelper.cpp b/Unvirt/CmdHelper.cpp index b79ffae..b67e844 100644 --- a/Unvirt/CmdHelper.cpp +++ b/Unvirt/CmdHelper.cpp @@ -232,13 +232,13 @@ namespace Unvirt::CmdHelper { // add into list switch (node->GetNodeType()) { - case NodeType::Argument: + case NodeType::Literal: m_Literals.emplace_back(node); break; case NodeType::Choice: m_Choices.emplace_back(node); break; - case NodeType::Literal: + case NodeType::Argument: m_Args.emplace_back(node); break; default: diff --git a/Unvirt/UnvirtContext.cpp b/Unvirt/UnvirtContext.cpp index ce7112a..40c7774 100644 --- a/Unvirt/UnvirtContext.cpp +++ b/Unvirt/UnvirtContext.cpp @@ -106,7 +106,7 @@ namespace Unvirt::Context { ) ) ) - ->Then((new CmdHelper::Literal("temp")) + ->Then((new CmdHelper::Literal("exit")) ->Executes( std::bind(&UnvirtContext::ProcExit, this, std::placeholders::_1), "Exit program."