From e44661aca4bc7cac8179efe3c98f4013d776a7e8 Mon Sep 17 00:00:00 2001 From: Han Date: Wed, 6 Dec 2023 06:08:20 +0800 Subject: [PATCH] FIX issue 462, nargs error (#547) --- rembg/commands/b_command.py | 2 +- rembg/commands/i_command.py | 2 +- rembg/commands/p_command.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rembg/commands/b_command.py b/rembg/commands/b_command.py index f3f8dc99..07f26c7f 100644 --- a/rembg/commands/b_command.py +++ b/rembg/commands/b_command.py @@ -74,7 +74,7 @@ @click.option( "-bgc", "--bgcolor", - default=None, + default=(0, 0, 0, 0), type=(int, int, int, int), nargs=4, help="Background color (R G B A) to replace the removed background with", diff --git a/rembg/commands/i_command.py b/rembg/commands/i_command.py index 73ad26d9..84541428 100644 --- a/rembg/commands/i_command.py +++ b/rembg/commands/i_command.py @@ -70,7 +70,7 @@ @click.option( "-bgc", "--bgcolor", - default=None, + default=(0, 0, 0, 0), type=(int, int, int, int), nargs=4, help="Background color (R G B A) to replace the removed background with", diff --git a/rembg/commands/p_command.py b/rembg/commands/p_command.py index 5181fb0e..41c81467 100644 --- a/rembg/commands/p_command.py +++ b/rembg/commands/p_command.py @@ -83,7 +83,7 @@ @click.option( "-bgc", "--bgcolor", - default=None, + default=(0, 0, 0, 0), type=(int, int, int, int), nargs=4, help="Background color (R G B A) to replace the removed background with",