Support for bare double dash in argument parsing with SimpleCommandLineArgsParser [SPR-17416] #21949
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: waiting-for-triage
An issue we've not yet triaged or decided on
Phil Webb opened SPR-17416 and commented
Originally raise as a Spring Boot issue:
I would like Spring Boot application to support guideline 10 of POSIX.1-2017 - Utility argument convention section:
| The first -- argument that is not an option-argument should be accepted as a delimiter indicating the end of options. Any following arguments should be treated as operands, even if they begin with the '-' character.
The desired behavior is to recognize the
--
and leave all the arguments to the right of it alone.Just for context: in
2.0.x
passing--
to a SpringBoot application results in an error (sample trace below). The double dash is treated as an invalid option (whose name is zero-length) and there seems to be no way to configure this behavior.Reference URL: spring-projects/spring-boot#14909
The text was updated successfully, but these errors were encountered: