mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-11 22:49:54 +00:00
Fix bash autocomplete output (#66821)
This commit is contained in:
@@ -353,6 +353,9 @@ func InitCLIParser(appName, appHelp string) (app *kingpin.Application) {
|
||||
func InitHiddenCLIParser() (app *kingpin.Application) {
|
||||
app = kingpin.New("", "")
|
||||
app.UsageWriter(io.Discard)
|
||||
// HiddenHelpWriter suppresses flags like --completion-script-bash that override UsageWriter before writing.
|
||||
// This prevents an unnecessary autocomplete from outputting.
|
||||
app.HiddenHelpWriter(io.Discard)
|
||||
app.Terminate(func(i int) {})
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user