From 72371cd4ed84016cbba040e064ee32d236fe55a5 Mon Sep 17 00:00:00 2001 From: Walter Boring Date: Wed, 21 Jan 2026 16:37:01 -0500 Subject: [PATCH] Account for required option This patch accounts for a required config option in the process_standard_options_no_config decorator --- aprsd/cli_helper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aprsd/cli_helper.py b/aprsd/cli_helper.py index 5a0aa61..646a4cf 100644 --- a/aprsd/cli_helper.py +++ b/aprsd/cli_helper.py @@ -282,6 +282,10 @@ def process_standard_options_no_config(f: F) -> F: except cfg.ConfigFilesNotFoundError: # Config file not needed for this function, so ignore error pass + except cfg.RequiredOptError as roe: + # They are missing a required option from the config, + # but we don't care, because they aren't loading a config + pass ctx.obj['loglevel'] = kwargs['loglevel'] ctx.obj['config_file'] = kwargs['config_file']