fix remaining parameters handling
This commit is contained in:
1 parent
9f051d57e2
commit
fdde00b40a
1 file changed
+1
-1
@@ -196,7 +196,7 @@ class CommandLine(
|
||||
val resultSubCommand = parseSubCommand(remaining)
|
||||
validateMandatoryParameters(resultSubCommand)
|
||||
|
||||
if (resultSubCommand.additionalParameters.isNotEmpty() && remainingDescription != null) {
|
||||
if (resultSubCommand.additionalParameters.isNotEmpty() && remainingDescription == null) {
|
||||
throw ArgumentParserException.noMoreOptions()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user