spring-shell icon indicating copy to clipboard operation
spring-shell copied to clipboard

Ordering of command and options within command.

Open hmble2 opened this issue 7 years ago • 1 comments
trafficstars

Both of below: @ShellMethod(key = {"attach-task", "at"}, prefix = "-", value = "Attach file to task.") @ShellMethod(key = {"at", "attach-task"}, prefix = "-", value = "Attach file to task.")

displays: at, attach-task: Attach file to task.

At times I prefer to keep the ordering that I provide. Could we have a flag to suppress natural ordering?

Same goes about order in which commands appear on console (vs definition order in java file), I would prefer them to appear in the order they defined in Java file.

hmble2 avatar Apr 05 '18 20:04 hmble2

This is something what had been asked few times like in #636. In light of that it's time we do something about it.

jvalkeal avatar Jan 29 '23 16:01 jvalkeal