From 75119c15ad4c2f4a3b39014f9837580fe0169e2a Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Wed, 11 Sep 2024 18:11:12 -0700 Subject: [PATCH] Fix bug in ddrescue-tui argument parsing --- scripts/wk/clone/ddrescue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/wk/clone/ddrescue.py b/scripts/wk/clone/ddrescue.py index a771f96c..e594b9cf 100644 --- a/scripts/wk/clone/ddrescue.py +++ b/scripts/wk/clone/ddrescue.py @@ -67,8 +67,8 @@ def argparse_helper() -> dict[str, None|bool|str]: ) args = parser.parse_args() legacy_args = { - 'clone': False if args.clone is None else args.clone, - 'image': False if args.image is None else args.image, + 'clone': args.mode == 'clone', + 'image': args.mode == 'image', '': args.source, '': args.destination, '--dry-run': args.dry_run,