Skip to content

Commit c47df2b

Browse files
authored
Do not offer completion for more than one datadisk move arg (#647)
1 parent 010690f commit c47df2b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/os_datadisk_move.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ data partition to a new harddisk. The system reboots afterwards!
1919
ha os datadisk move /dev/sda
2020
`,
2121
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
22+
if len(args) != 0 {
23+
return nil, cobra.ShellCompDirectiveNoFileComp
24+
}
2225
if toComplete == "" {
2326
return []string{"/dev/"}, cobra.ShellCompDirectiveNoSpace
2427
}

0 commit comments

Comments
 (0)