소스 검색

fix: no-play argument for API client (#745)

Hao Guan 1 년 전
부모
커밋
3147dd26ef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tools/api_client.py

+ 1 - 1
tools/api_client.py

@@ -61,7 +61,7 @@ def parse_args():
     )
     parser.add_argument(
         "--play",
-        type=bool,
+        action=argparse.BooleanOptionalAction,
         default=True,
         help="Whether to play audio after receiving data",
     )