fix: skip first arg to set command line as expected by interpreted main (#203)
This commit is contained in:
committed by
Ludovic Fernandez
parent
ad009959af
commit
99eac2d333
14
_test/flag0.go
Normal file
14
_test/flag0.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
fmt.Println("Narg:", flag.NArg())
|
||||
}
|
||||
|
||||
// Output:
|
||||
// Narg: 0
|
||||
Reference in New Issue
Block a user