From 0880afe67bf7ecbbac1153fb74030ecae963cedc Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 10 Jul 2021 19:44:18 +0200 Subject: [PATCH] Use our generate command instead of cobra's complete command --- cmd/restic/global.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/restic/global.go b/cmd/restic/global.go index 8d02b228e..d411d9e65 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -119,6 +119,8 @@ func init() { f.IntVar(&globalOptions.LimitUploadKb, "limit-upload", 0, "limits uploads to a maximum rate in KiB/s. (default: unlimited)") f.IntVar(&globalOptions.LimitDownloadKb, "limit-download", 0, "limits downloads to a maximum rate in KiB/s. (default: unlimited)") f.StringSliceVarP(&globalOptions.Options, "option", "o", []string{}, "set extended option (`key=value`, can be specified multiple times)") + // Use our "generate" command instead of the cobra provided "completion" command + cmdRoot.CompletionOptions.DisableDefaultCmd = true restoreTerminal() }