diff options
Diffstat (limited to 'argv.Print.go')
| -rw-r--r-- | argv.Print.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/argv.Print.go b/argv.Print.go index 5f57421..368cf7b 100644 --- a/argv.Print.go +++ b/argv.Print.go @@ -11,11 +11,15 @@ import ( "go.wit.com/lib/cobol" ) -// decides here to print to STDERR or not func (pb *Argv) Debugf(fmts string, parts ...any) { + Debugf(fmts, parts...) +} + +// decides here to print to STDERR or not +func Debugf(fmts string, parts ...any) { fmts = strings.TrimSpace(fmts) fmts += "\n" - pb.Stderr += fmt.Sprintf(fmts, parts...) + me.pb.Stderr += fmt.Sprintf(fmts, parts...) } // print out auto complete debugging info @@ -40,7 +44,7 @@ func (pb *Argv) PrintDebugNew(msg string) { fast = "fast=0," + pb.GetCmd() } sargv := fmt.Sprintf("argv(%v)", pb.Real) - pb.Debugf("%s: age=(%s) %-12.12s %-12.12s %-12.12s %s %s goargs='%v' len(%d)", msg, dur, cmd, arglast, partial, fast, sargv, pb.Goargs, me.all.Len()) + Debugf("%s: age=(%s) %-12.12s %-12.12s %-12.12s %s %s goargs='%v' len(%d)", msg, dur, cmd, arglast, partial, fast, sargv, pb.Goargs, me.all.Len()) } func (all *Argvs) PrintHistory() { |
