瀏覽代碼

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",
     )