Affects: 6.x
Unfortunately JOpt Simple seems to be dead:
(IMHO) All this does make it a bad option as a reference implementation for an advanced CommandLinePropertySource
. It would be better to replace it with something actively maintained library. Some candidates might be:
- JCommander
- picocli
- Maybe Commons CLI - but they didn't release and new version since 2021...
- Airline 2 might also be an option, but seem less common
Comment From: snicoll
Thanks for the report.
We've decided to deprecate our support for JOptCommandLinePropertySource
and do not consider a replacement at this time.
Comment From: sbrannen
Reopening to revert the deprecation of CommandLinePropertySource
and SimpleCommandLinePropertySource
, since we have discovered that Spring Boot actively uses SimpleCommandLinePropertySource
in org.springframework.boot.SpringApplication
.