diff options
Diffstat (limited to 'argv.parseOsArgs.go')
| -rw-r--r-- | argv.parseOsArgs.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/argv.parseOsArgs.go b/argv.parseOsArgs.go index 8623138..70231ef 100644 --- a/argv.parseOsArgs.go +++ b/argv.parseOsArgs.go @@ -10,7 +10,7 @@ import ( "go.wit.com/log" ) -func (pb *Argv) parseArgv() { +func (pb *Argv) parseOsArgs() { // this shouldn't really happen. OS/POSIX error? if len(os.Args) == 0 { // fmt.Fprintf(os.Stderr, "what OS is this?\n") @@ -71,6 +71,9 @@ func (pb *Argv) parseArgv() { if os.Args[1] != "--auto-complete" { // if the first arg is not --auto-complete, then don't go any farther for _, s := range os.Args[1:] { + pb.Real = append(pb.Real, s) + } + for _, s := range os.Args[1:] { if strings.HasPrefix(s, "-") { // option is something like --verbose // skip these. they are not subcommands |
