Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

FIX issue 462, nargs error (#547)

Hane44661aca4bc
diff --git a/rembg/commands/b_command.py b/rembg/commands/b_command.py
index f3f8dc9..07f26c7 100644
--- a/rembg/commands/b_command.py
+++ b/rembg/commands/b_command.py
@@ -74,7 +74,7 @@ from ..sessions import sessions_names
@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 73ad26d..8454142 100644
--- a/rembg/commands/i_command.py
+++ b/rembg/commands/i_command.py
@@ -70,7 +70,7 @@ from ..sessions import sessions_names
@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 5181fb0..41c8146 100644
--- a/rembg/commands/p_command.py
+++ b/rembg/commands/p_command.py
@@ -83,7 +83,7 @@ from ..sessions import sessions_names
@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",