We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 790ea2f commit db252d0Copy full SHA for db252d0
vlib/cli/command.v
@@ -230,7 +230,8 @@ fn (mut cmd Command) parse_commands() {
230
// if no further command was found, execute current command
231
if cmd.required_args > 0 {
232
if cmd.required_args > cmd.args.len {
233
- eprintln_exit('Command `${cmd.name}` needs at least ${cmd.required_args} arguments')
+ descriptor := if cmd.required_args == 1 { 'argument' } else { 'arguments' }
234
+ eprintln_exit('Command `${cmd.name}` needs at least ${cmd.required_args} ${descriptor}')
235
}
236
237
cmd.check_required_flags()
0 commit comments