From 46538d9a5b347cfc5ef9ea5b5d5b6fb91744c330 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 9 Dec 2025 19:34:58 +0100 Subject: [PATCH] fix: verify prog actually exists before using it --- freqtrade/commands/arguments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/commands/arguments.py b/freqtrade/commands/arguments.py index 3ccb854b3..f84822ac8 100755 --- a/freqtrade/commands/arguments.py +++ b/freqtrade/commands/arguments.py @@ -352,7 +352,7 @@ class Arguments: opt = AVAILABLE_CLI_OPTIONS[val] options = deepcopy(opt.kwargs) help_text = options.pop("help", None) - if opt.fthelp and isinstance(opt.fthelp, dict): + if opt.fthelp and isinstance(opt.fthelp, dict) and hasattr(parser, "prog"): help_text = opt.fthelp.get(parser.prog, help_text) parser.add_argument(*opt.cli, dest=val, help=help_text, **options)