diff options
Diffstat (limited to 'complete.go')
| -rw-r--r-- | complete.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/complete.go b/complete.go index 0a28981..2ebe8be 100644 --- a/complete.go +++ b/complete.go @@ -39,7 +39,9 @@ func (pb *Auto) doHandlePB() error { // found.PrintDebug() cmd := fmt.Sprintf("cmd='%s'", found.Cmd) arglast := fmt.Sprintf("last='%s'", found.Last) - pb.Debugf("AUTO HISTORY: age=%-6.6s %-18.18s %-18.18s partial='%s' argv='%v'", shell.FormatDuration(dur), cmd, arglast, found.Partial, found.Argv) + partial := fmt.Sprintf("p='%s'", found.Partial) + age := fmt.Sprintf("age='%-6.6s'", shell.FormatDuration(dur)) + pb.Debugf("AUTO HISTORY: %s %-18.18s %-18.18s %-12.12s argv='%v' goargs='%v'", age, cmd, arglast, partial, found.Argv, found.Goargs) last = found } } @@ -83,8 +85,9 @@ func (pb *Auto) SubCommand(cmd ...string) { partial := strings.Trim(pb.Partial, "'") if pb.Debug { if myAuto.examples == nil { - log.Fprintf(os.Stderr, "\n") - log.Fprintf(os.Stderr, "examples was nil\n") + pb.Debugf("WRITE DEBUG: argv.Examples() not defined") + // log.Fprintf(os.Stderr, "\n") + // log.Fprintf(os.Stderr, "examples was nil\n") // log.Fprintf(os.Stderr, "\n") } else { log.Fprintf(os.Stderr, "\n") |
