fix flag parsing, usage generation

This commit is contained in:
idk
2022-07-15 18:19:53 -04:00
parent 3f0b0d8fdb
commit 8f3a5594c6
7 changed files with 113 additions and 157 deletions

View File

@ -10,6 +10,7 @@ import (
func CleanupArgs() (args []string, trailers []string) {
// get a list of all possible flags from the flag package
args = []string{os.Args[0]}
for i, arg := range os.Args[1:] {
log.Printf("arg %d: %s", i, arg)
trailer := true