spring-projects / spring-shell

Spring based shell
http://projects.spring.io/spring-shell/
Apache License 2.0
710 stars 391 forks source link

ShellApplicationRunner should have behaviour without arguments #1052

Open jvalkeal opened 2 months ago

jvalkeal commented 2 months ago

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.