From 6837253a01959355abee8f99f509d4858032d5ba Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Sun, 27 Aug 2023 16:51:18 +0800 Subject: [PATCH] fix some running error --- Unvirt/CmdHelper.cpp | 4 ++-- Unvirt/UnvirtContext.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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."