Skip to content

Commit 59cfd7a

Browse files
authored
Merge pull request #18612 from Kamandlou/km-dev
update: `cobra.ExactValidArgs` method is deprecated
2 parents acb1b17 + 063627e commit 59cfd7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

etcdctl/ctlv3/command/completion_command.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ PowerShell:
6565
`,
6666
DisableFlagsInUseLine: true,
6767
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
68-
Args: cobra.ExactValidArgs(1),
68+
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
6969
Run: func(cmd *cobra.Command, args []string) {
7070
switch args[0] {
7171
case "bash":

etcdutl/etcdutl/completion_commmand.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ PowerShell:
6565
`,
6666
DisableFlagsInUseLine: true,
6767
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
68-
Args: cobra.ExactValidArgs(1),
68+
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
6969
Run: func(cmd *cobra.Command, args []string) {
7070
switch args[0] {
7171
case "bash":

0 commit comments

Comments
 (0)