소스 검색

FIX issue 462, nargs error (#547)

Han 1 년 전
부모
커밋
e44661aca4
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      rembg/commands/b_command.py
  2. 1 1
      rembg/commands/i_command.py
  3. 1 1
      rembg/commands/p_command.py

+ 1 - 1
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",

+ 1 - 1
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",

+ 1 - 1
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",