feat: port flag

This commit is contained in:
vxclutch
2026-05-28 07:44:33 -04:00
parent d0ff3003b2
commit b436415980
3 changed files with 5 additions and 5 deletions

View File

@@ -2,14 +2,14 @@ package app
import (
"errors"
"os"
"flag"
"strings"
)
func GetFilePath() (string, error) {
fp := ""
for _, v := range os.Args[1:] {
for _, v := range flag.Args() {
if !strings.HasPrefix(v, "-") {
fp = v
return fp, nil