shared flags
cicd / ci (push) Successful in 1m53s
Details
cicd / ci (push) Successful in 1m53s
Details
parent
3fb1ee4ea3
commit
b30b1811ea
|
|
@ -5,6 +5,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"gogs.inhome.blapointe.com/ana-ledger/cmd/cli"
|
"gogs.inhome.blapointe.com/ana-ledger/cmd/cli"
|
||||||
|
|
@ -37,8 +38,12 @@ func main() {
|
||||||
files := os.Args[2:]
|
files := os.Args[2:]
|
||||||
os.Args = []string{os.Args[0], "cli"}
|
os.Args = []string{os.Args[0], "cli"}
|
||||||
for _, f := range files {
|
for _, f := range files {
|
||||||
|
if strings.HasPrefix(f, "-") {
|
||||||
|
os.Args = append(os.Args, f)
|
||||||
|
} else {
|
||||||
os.Args = append(os.Args, "-f", f)
|
os.Args = append(os.Args, "-f", f)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
os.Args = append(os.Args,
|
os.Args = append(os.Args,
|
||||||
"-w=^Housey",
|
"-w=^Housey",
|
||||||
"--depth=1",
|
"--depth=1",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue