diff options
| author | Jeff Carr <[email protected]> | 2025-10-25 02:56:12 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-25 02:56:12 -0500 |
| commit | 31e1d6afbe3ad9e39d0f0115b1ae3ddb0bb5de64 (patch) | |
| tree | d7565089b8d9f8df1d5e19198cd1e24ac5e59ef7 /argv.Print.go | |
| parent | 87dbb0b212c48e55a50b612f022b4b035e25477f (diff) | |
notsure
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() { |
