fix some running error

This commit is contained in:
yyc12345 2023-08-27 16:51:18 +08:00
parent c8f18bce0c
commit 6837253a01
2 changed files with 3 additions and 3 deletions

View File

@ -232,13 +232,13 @@ namespace Unvirt::CmdHelper {
// add into list // add into list
switch (node->GetNodeType()) { switch (node->GetNodeType()) {
case NodeType::Argument: case NodeType::Literal:
m_Literals.emplace_back(node); m_Literals.emplace_back(node);
break; break;
case NodeType::Choice: case NodeType::Choice:
m_Choices.emplace_back(node); m_Choices.emplace_back(node);
break; break;
case NodeType::Literal: case NodeType::Argument:
m_Args.emplace_back(node); m_Args.emplace_back(node);
break; break;
default: default:

View File

@ -106,7 +106,7 @@ namespace Unvirt::Context {
) )
) )
) )
->Then((new CmdHelper::Literal("temp")) ->Then((new CmdHelper::Literal("exit"))
->Executes( ->Executes(
std::bind(&UnvirtContext::ProcExit, this, std::placeholders::_1), std::bind(&UnvirtContext::ProcExit, this, std::placeholders::_1),
"Exit program." "Exit program."