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