nop: ignore unknown switches instead of failing
This commit is contained in:
parent
c643cd4467
commit
55f9a69465
|
@ -2656,7 +2656,8 @@ const CommandDesc require_module_cmd = {
|
||||||
void register_commands()
|
void register_commands()
|
||||||
{
|
{
|
||||||
CommandManager& cm = CommandManager::instance();
|
CommandManager& cm = CommandManager::instance();
|
||||||
cm.register_command("nop", [](const ParametersParser&, Context&, const ShellContext&){}, "do nothing", {});
|
cm.register_command("nop", [](const ParametersParser&, Context&, const ShellContext&){}, "do nothing",
|
||||||
|
{{}, ParameterDesc::Flags::IgnoreUnknownSwitches});
|
||||||
|
|
||||||
auto register_command = [&](const CommandDesc& c)
|
auto register_command = [&](const CommandDesc& c)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user