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

ShellApplicationRunner should have behaviour without arguments

Open jvalkeal opened this issue 10 months ago • 0 comments

Starting from 3.3.x NonInteractiveShellRunner is only active runner on default. While it was always possible to disable InteractiveShellRunner to get into this behaviour, NonInteractiveShellRunner doesn't really do anything if no arguments were given.

Traditionally just running app as is i.e. prints main help. Saying NonInteractiveShellRunner doesn't do anything is a bit wrong as it's not even chosen if there's no arguments. Should think where to handle this case and how?

Might be a role for ShellApplicationRunner to handle this.

jvalkeal avatar Apr 20 '24 16:04 jvalkeal