Fix bug in ddrescue-tui argument parsing
This commit is contained in:
parent
e6db63c8b0
commit
75119c15ad
1 changed files with 2 additions and 2 deletions
|
|
@ -67,8 +67,8 @@ def argparse_helper() -> dict[str, None|bool|str]:
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
legacy_args = {
|
legacy_args = {
|
||||||
'clone': False if args.clone is None else args.clone,
|
'clone': args.mode == 'clone',
|
||||||
'image': False if args.image is None else args.image,
|
'image': args.mode == 'image',
|
||||||
'<source>': args.source,
|
'<source>': args.source,
|
||||||
'<destination>': args.destination,
|
'<destination>': args.destination,
|
||||||
'--dry-run': args.dry_run,
|
'--dry-run': args.dry_run,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue