Skip to content

Commit

Permalink
function should use the new name provided
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 30, 2023
1 parent ae77a11 commit 449a654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/scripts/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def do_legacy_bool_parse(cmdline, optionname, newoptionname=None):
yes = f"--{optionname}"
if newoptionname is None:
newoptionname = optionname
do_replace_option(cmdline, no, f"--{optionname}=no")
do_replace_option(cmdline, yes, f"--{optionname}=yes")
do_replace_option(cmdline, no, f"--{newoptionname}=no")
do_replace_option(cmdline, yes, f"--{newoptionname}=yes")

def ignore_options(args, options):
for x in options:
Expand Down

0 comments on commit 449a654

Please sign in to comment.