mirror of
https://github.com/xiaoqidun/wslkd.git
synced 2024-12-27 00:21:05 +08:00
fix(修复错误): 修复参数解析
This commit is contained in:
parent
c0a9c7e115
commit
2bcaa7d166
2
wslkd.go
2
wslkd.go
@ -11,7 +11,7 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
var d string
|
var d string
|
||||||
flag.StringVar(&d, "d", "Debian", "distribution")
|
flag.StringVar(&d, "d", "Debian", "distribution")
|
||||||
flag.Parsed()
|
flag.Parse()
|
||||||
waitGroup := &sync.WaitGroup{}
|
waitGroup := &sync.WaitGroup{}
|
||||||
distroList := strings.Split(d, ",")
|
distroList := strings.Split(d, ",")
|
||||||
for i := 0; i < len(distroList); i++ {
|
for i := 0; i < len(distroList); i++ {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user