فهرست منبع

feat: 为可视化脚本添加命令行参数支持

允许通过命令行参数指定账号名称:
  python script/data_processing/visualize_how_results.py 摸鱼阿希

如果不提供参数,则按优先级使用:
  1. 环境变量 ACCOUNT_NAME
  2. 配置文件中的 default_account

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
yangxiaohui 1 هفته پیش
والد
کامیت
8323cee9c8
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      script/data_processing/visualize_how_results.py

+ 5 - 1
script/data_processing/visualize_how_results.py

@@ -3703,8 +3703,12 @@ def minify_html(html: str) -> str:
 
 def main():
     """主函数"""
+    # 解析命令行参数
+    import sys
+    account_name = sys.argv[1] if len(sys.argv) > 1 else None
+
     # 使用路径配置
-    config = PathConfig()
+    config = PathConfig(account_name=account_name)
 
     # 确保输出目录存在
     config.ensure_dirs()