mirror of
https://github.com/KrisKennaway/ii-pix.git
synced 2024-09-30 03:55:42 +00:00
Fix bool flags
This commit is contained in:
parent
9a77af37aa
commit
8b5c3dc6c1
@ -331,13 +331,14 @@ def main():
|
|||||||
'(default: 0)'
|
'(default: 0)'
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--save-preview', type=bool, default=True,
|
'--save-preview', action=argparse.BooleanOptionalAction, default=True,
|
||||||
help='Whether to save a .PNG rendering of the output image (default: '
|
help='Whether to save a .PNG rendering of the output image (default: '
|
||||||
'True)'
|
'True)'
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--show-final-score', type=bool, default=False,
|
'--show-final-score', action=argparse.BooleanOptionalAction,
|
||||||
help='Whether to output the final image quality score (default: False)'
|
default=False, help='Whether to output the final image quality score '
|
||||||
|
'(default: False)'
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if args.lookahead < 1:
|
if args.lookahead < 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user