From b93e868048a679d1c3ae7e490d409967589a7596 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 28 Jul 2018 16:32:10 +0100 Subject: [PATCH] [Py2to3] Fix ui_entry default indicator --- deluge/ui/ui_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/ui_entry.py b/deluge/ui/ui_entry.py index c4f2f3b26..8ce79e14d 100644 --- a/deluge/ui/ui_entry.py +++ b/deluge/ui/ui_entry.py @@ -96,7 +96,7 @@ def start_ui(): # If the UI is set as default, indicate this in help by prefixing with a star. subactions = subparsers._get_subactions() prefix = '*' if ui == default_ui else ' ' - subactions[-1].dest = '%s %s' % (prefix, ui) + subactions[-1].metavar = '%s %s' % (prefix, ui) # Insert a default UI subcommand unless one of the ambiguous_args are specified parser.set_default_subparser(default_ui, abort_opts=AMBIGUOUS_CMD_ARGS)