From 7d2d55a6d00e25b6c6d7334aeb7e6390ae164fc6 Mon Sep 17 00:00:00 2001 From: Tim Reddehase Date: Tue, 25 Sep 2018 13:42:36 +0200 Subject: [PATCH] remove oly mention. --- fish_completions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish_completions.go b/fish_completions.go index 0034402f..4dd9b840 100644 --- a/fish_completions.go +++ b/fish_completions.go @@ -26,7 +26,7 @@ func writeFishPreamble(cmd *Command, buf *bytes.Buffer) { subCommandNames = append(subCommandNames, subCmd.Name()) }) buf.WriteString(fmt.Sprintf(` -function __fish_%s_no_subcommand --description 'Test if oly has yet to be given the subcommand' +function __fish_%s_no_subcommand --description 'Test if %s has yet to be given the subcommand' for i in (commandline -opc) if contains -- $i %s return 1 @@ -42,7 +42,7 @@ function __fish_%s_has_flag end return 1 end -`, cmd.Name(), strings.Join(subCommandNames, " "), cmd.Name())) +`, cmd.Name(), cmd.Name(), strings.Join(subCommandNames, " "), cmd.Name())) } func writeFishCommandCompletion(rootCmd, cmd *Command, buf *bytes.Buffer) {