This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user