From 55f9a694657df7b3bc1b6675a8a6630401375515 Mon Sep 17 00:00:00 2001 From: Olivier Perret Date: Mon, 19 Jul 2021 11:47:07 +0200 Subject: [PATCH] nop: ignore unknown switches instead of failing --- src/commands.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index 3a805756..ed468f6a 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -2656,7 +2656,8 @@ const CommandDesc require_module_cmd = { void register_commands() { 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) {