mv flagdemo => _cmptest

This commit is contained in:
xushiwei
2024-07-18 00:09:21 +08:00
parent 10b0124951
commit 85a90b62b7

View File

@@ -7,7 +7,7 @@ import (
)
func main() {
fmt.Println("os.Args:", os.Args)
fmt.Println("args:", os.Args[1:])
if len(os.Args) == 1 {
os.Args = []string{"flagdemo", "-cpu", "100"}
}