summaryrefslogtreecommitdiff
path: root/theMagicOfAutocomplete.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-27 18:39:18 -0500
committerJeff Carr <[email protected]>2025-10-27 18:39:18 -0500
commit4b096312a8ad49d0079242dc274c7c4a8a2cb31a (patch)
tree3621600ec15dc43ae552dbd45fe5d926c7cf2722 /theMagicOfAutocomplete.go
parent8a0353dfd94e24d2b1a67a2b5c1cdac37c91ad35 (diff)
trying to fix helpv0.0.48
Diffstat (limited to 'theMagicOfAutocomplete.go')
-rw-r--r--theMagicOfAutocomplete.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go
index db1a95b..92163cb 100644
--- a/theMagicOfAutocomplete.go
+++ b/theMagicOfAutocomplete.go
@@ -63,11 +63,11 @@ func Autocomplete() *Argv {
// savePB()
// me.pp = arg.MustParse(dest)
me.Err = errors.Join(me.Err, me.mustParseFunc())
- fmt.Fprintf(Stderr, "did mustParseFunc(). heading to forge. err(%v)\n", me.Err)
+ fmt.Fprintf(Stddbg, "did mustParseFunc(). heading to forge. err(%v)\n", me.Err)
doStdoutStderr()
return me.pb
}
- fmt.Fprintf(Stderr, "heading to autocomplete. err(%v)\n", me.Err)
+ fmt.Fprintf(Stddbg, "heading to autocomplete. err(%v)\n", me.Err)
prepareStdout()
// print to Stdout & Stderr
@@ -88,7 +88,7 @@ func prepareStdout() {
if strings.HasPrefix(me.pb.Partial, "'--argv") {
fmt.Fprintf(Stdout, " --argvdebug --argvhelp")
- me.pb.Stderr += fmt.Sprintln("argv override")
+ me.pb.Stddbg += fmt.Sprintln("argv override")
me.debug = true
return
}
@@ -107,7 +107,7 @@ func prepareStdout() {
}
me.pb.HelpCounter = me.last.HelpCounter
- fmt.Fprintf(Stderr, "got to HelpCounter check err(%v)\n", me.Err)
+ fmt.Fprintf(Stddbg, "got to HelpCounter check err(%v)\n", me.Err)
if me.pb.Fast {
if me.last.Fast {
@@ -118,7 +118,7 @@ func prepareStdout() {
} else {
errors.Join(me.Err, me.autoFunc()) // run the autocomplete function the user made for their application
}
- fmt.Fprintf(Stderr, "got to the end err(%v)\n", me.Err)
+ fmt.Fprintf(Stddbg, "got to the end err(%v)\n", me.Err)
return
}
@@ -134,11 +134,11 @@ func savePB() {
func doStdoutStderr() {
if me.debug {
me.all.PrintHistory(me.last.GetCmd())
- fmt.Fprintf(Stderr, "debug=true pb.Stdout (%v)\n", PB.Stdout)
+ fmt.Fprintf(Stddbg, "debug=true pb.Stdout (%v)\n", PB.Stdout)
} else {
if me.pb.Fast {
if me.pb.HelpCounter < 3 {
- fmt.Fprintf(Stderr, "help counter < 3\n")
+ fmt.Fprintf(Stddbg, "help counter < 3\n")
}
}
}
@@ -167,7 +167,7 @@ func examineArgvHistory() {
// so this panic() is safe and can never be triggered by normal program execution.
//
me.debug = true
- me.pb.Stderr += fmt.Sprintf("config.CreateCacheDirPB() err(%v)\n", me.Err)
+ me.pb.Stddbg += fmt.Sprintf("config.CreateCacheDirPB() err(%v)\n", me.Err)
doStdoutStderr()
panic("argvpb.Load() history file failed")
}
@@ -219,7 +219,7 @@ func examineArgvHistory() {
// only have nil values in the .pb file. just die for now
if me.all.Len() == 0 {
me.debug = true
- fmt.Fprintf(Stderr, "examineArgvHistory() empty file %s\n", me.all.Filename)
+ fmt.Fprintf(Stddbg, "examineArgvHistory() empty file %s\n", me.all.Filename)
doStdoutStderr()
saveAndExit()
}