Browse Source

修改代码

master
xyiege 4 months ago
parent
commit
58f1f8dd8b
  1. 4
      scalib/main.go

4
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()

Loading…
Cancel
Save