fix some running error
This commit is contained in:
parent
c8f18bce0c
commit
6837253a01
|
@ -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:
|
||||||
|
|
|
@ -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."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user