Add API to control whether synopsis should be sorted or not #1574
Labels
theme: arg-group
An issue or change related to argument groups
theme: usagehelp
An issue or change related to the usage help message
type: API 🔌
Milestone
Related to #964 and #1408: instead of sorting the synopsis based on the
@Command(sortOptions = false)
annotation, it may be better to have a separate@Command(sortSynopsis = false)
annotation.There may be applications that want to explicitly sort options in the options list, but have the synopsis sorted alphabetically.
Also, having a separate API to enable the changes in #964 and #1408 avoids the risk of somehow breaking existing applications that expect the synopsis to look a certain way.
The text was updated successfully, but these errors were encountered: