remkop / picocli

Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.
https://picocli.info
Apache License 2.0
4.89k stars 422 forks source link

ArgGroup with multiplicity 1 is validated "too" late #2231

Open xehpuk opened 6 months ago

xehpuk commented 6 months ago

When there's an interactive option, then the missing of an ArgGroup only gets validated after providing the interactive option. The parsing should fail earlier.

remkop commented 5 months ago

Sorry for my late response. Can you provide a test to help me reproduce the issue?

remkop commented 5 months ago

@xehpuk It would help greatly if you could provide a test that reproduces the issue.