From 51a468b2bae4ca8e21760435211623a8199a9167 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 25 May 2023 14:32:40 +0100 Subject: [PATCH] genautocomplete: rename to completion with alias to old name This brings it into line with cobra's naming scheme and stops cobra writing another "completion" command which doesn't work as well which confuses users. See: https://forum.rclone.org/t/rclone-genautocomplete-bash-vs-rclone-completion-bash-neither-works-fully/38431 --- cmd/genautocomplete/genautocomplete.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/genautocomplete/genautocomplete.go b/cmd/genautocomplete/genautocomplete.go index c1408d9f7..029b381d3 100644 --- a/cmd/genautocomplete/genautocomplete.go +++ b/cmd/genautocomplete/genautocomplete.go @@ -11,7 +11,7 @@ func init() { } var completionDefinition = &cobra.Command{ - Use: "genautocomplete [shell]", + Use: "completion [shell]", Short: `Output completion script for a given shell.`, Long: ` Generates a shell completion script for rclone. @@ -20,4 +20,5 @@ Run with ` + "`--help`" + ` to list the supported shells. Annotations: map[string]string{ "versionIntroduced": "v1.33", }, + Aliases: []string{"genautocomplete"}, }