From 58f1f8dd8b2427356b5e9b7fd8bff2ce25efd212 Mon Sep 17 00:00:00 2001 From: xc Date: Thu, 9 Oct 2025 15:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scalib/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scalib/main.go b/scalib/main.go index 213e4ac..b7159ea 100644 --- a/scalib/main.go +++ b/scalib/main.go @@ -25,7 +25,7 @@ type UpFileClient struct { } // todo 后续增加安全验证 - +// 使用方法 eg: ./scalib -h 192.168.66.92:9098 -f /www/gfs/sync_zips/BIU_20251009_153640.zip /www/afs/logs/ // 主入口 func main() { // 启用日志 @@ -33,7 +33,7 @@ func main() { defer logger.Sync() // 使用flag解析命令行参数 - remote := flag.String("h", "127.0.0.1:8080", "The remote server address (ip:port)") + remote := flag.String("h", "", "The remote server address (ip:port)") curPath := flag.String("f", "", "The local file path to upload") uploadPath := flag.String("u", "", "The remote upload path") flag.Parse()