Update flags.go

This commit is contained in:
Trim21 authored and monkeyWie committed 2022-11-05 10:43:07 +08:00
1 parent 89ac52bebd
commit babfe79023
1 file changed
+1 -2
+1 -2
View File
@@ -4,7 +4,6 @@ import (
"flag" "flag"
"fmt" "fmt"
"os" "os"
"path/filepath"
) )
type args struct { type args struct {
@@ -14,7 +13,7 @@ type args struct {
} }
func parse() *args { func parse() *args {
dir, err := filepath.Abs(filepath.Dir(os.Args[0])) dir, err := os.Getwd()
if err != nil { if err != nil {
panic(err) panic(err)
} }