Skip to content

Commit f36d4e0

Browse files
authored
fix: yaegi os.Args should contain the script name
1 parent 5dfc3b8 commit f36d4e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/yaegi/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func run(arg []string) error {
7070

7171
// Skip first os arg to set command line as expected by interpreted main
7272
path := args[0]
73-
os.Args = arg[1:]
73+
os.Args = arg
7474
flag.CommandLine = flag.NewFlagSet(path, flag.ExitOnError)
7575

7676
if isFile(path) {

0 commit comments

Comments
 (0)