@@ -47,7 +47,7 @@ To create a new disk:
4747$ limactl disk create DISK --size SIZE
4848` ,
4949 Short : "Create a Lima disk" ,
50- Args : cobra .ExactArgs (1 ),
50+ Args : WrapArgsError ( cobra .ExactArgs (1 ) ),
5151 RunE : diskCreateAction ,
5252 }
5353 diskCreateCommand .Flags ().String ("size" , "" , "configure the disk size" )
@@ -100,7 +100,7 @@ $ limactl disk list
100100` ,
101101 Short : "List existing Lima disks" ,
102102 Aliases : []string {"ls" },
103- Args : cobra .ArbitraryArgs ,
103+ Args : WrapArgsError ( cobra .ArbitraryArgs ) ,
104104 RunE : diskListAction ,
105105 }
106106 diskListCommand .Flags ().Bool ("json" , false , "JSONify output" )
@@ -189,7 +189,7 @@ $ limactl disk delete DISK1 DISK2 ...
189189` ,
190190 Aliases : []string {"remove" , "rm" },
191191 Short : "Delete one or more Lima disks" ,
192- Args : cobra .MinimumNArgs (1 ),
192+ Args : WrapArgsError ( cobra .MinimumNArgs (1 ) ),
193193 RunE : diskDeleteAction ,
194194 }
195195 diskDeleteCommand .Flags ().BoolP ("force" , "f" , false , "force delete" )
@@ -279,7 +279,7 @@ To unlock multiple disks:
279279$ limactl disk unlock DISK1 DISK2 ...
280280` ,
281281 Short : "Unlock one or more Lima disks" ,
282- Args : cobra .MinimumNArgs (1 ),
282+ Args : WrapArgsError ( cobra .MinimumNArgs (1 ) ),
283283 RunE : diskUnlockAction ,
284284 }
285285 return diskUnlockCommand
0 commit comments