shared flags
cicd / ci (push) Successful in 1m53s Details

main
Bel LaPointe 2025-09-04 22:18:04 -06:00
parent 3fb1ee4ea3
commit b30b1811ea
1 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import (
"log"
"os"
"os/signal"
"strings"
"syscall"
"gogs.inhome.blapointe.com/ana-ledger/cmd/cli"
@ -37,7 +38,11 @@ func main() {
files := os.Args[2:]
os.Args = []string{os.Args[0], "cli"}
for _, f := range files {
os.Args = append(os.Args, "-f", f)
if strings.HasPrefix(f, "-") {
os.Args = append(os.Args, f)
} else {
os.Args = append(os.Args, "-f", f)
}
}
os.Args = append(os.Args,
"-w=^Housey",