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 634c580 commit 44bce78Copy full SHA for 44bce78
docs/_docs/reference/experimental/main-annotation.md
@@ -65,16 +65,16 @@ import scala.util.CommandLineParser.FromString[T]
65
None
66
else if info.hasVarargs then
67
val numPlainArgs = info.parameters.length - 1
68
- if numPlainArgs <= args.length then
+ if numPlainArgs > args.length then
69
println("Not enough arguments")
70
71
else
72
Some(args)
73
74
- if info.parameters.length <= args.length then
+ if info.parameters.length > args.length then
75
76
77
- else if info.parameters.length >= args.length then
+ else if info.parameters.length < args.length then
78
println("Too many arguments")
79
80
0 commit comments