From 17cf049c4ef97ef6d36add872810ff1645a6fe8e Mon Sep 17 00:00:00 2001 From: Nat Lee Date: Wed, 11 Oct 2023 15:18:23 +0800 Subject: [PATCH] [fix] name typo `output_path` --- src/heic2png/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/heic2png/cli.py b/src/heic2png/cli.py index a84a63f..875bac8 100644 --- a/src/heic2png/cli.py +++ b/src/heic2png/cli.py @@ -10,7 +10,7 @@ def cli(args): """ print(f'Processing the HEIC image at `{args.input_path}`') - if args.output: + if args.output_path: print(f'Specified output path: `{args.output_path}`') if not 1 <= args.quality <= 100: @@ -21,7 +21,7 @@ def cli(args): heic_img = HEIC2PNG(args.input_path, args.quality) print('Converting the image...') - if args.output and args.overwrite: + if args.output_path and args.overwrite: print(f'Overwriting the existing file at `{args.output_path}`') output_path = heic_img.save(args.output_path)