643b189fb8d63f9a7aeee361f12a30301864e9a2
- In a case where arg is given as boolean and with plain
@ShellOption (user doesn't define defaults), configure
arg not to be mandatory and with default value false.
- This brings this spesific case more close how it behave
in older shell version.
- Having `@ShellOption boolean arg1` it now works as:
my-shell:>e2e reg default-value-boolean3
Hello false
my-shell:>e2e reg default-value-boolean3 --arg1
Hello true
my-shell:>e2e reg default-value-boolean3 --arg1 false
Hello false
my-shell:>e2e reg default-value-boolean3 --arg1 true
Hello true
- Fixes #461
= Spring Shell 2 Spring Shell 2.1.x is a work to solely depend on Spring Boot 2.x and not trying to keep any backward compatibility with older Spring Shell 1.x nor Spring Boot 1.x. == Building ``` ./mvnw package ``` == Running The project comes with a sample application, showcasing the various ways you can write commands. ``` ./mvnw install ./mvnw -pl spring-shell-samples spring-boot:run ``` From there, try typing `help` or `help <commmand>` at the shell prompt.
Description
Languages
Java
100%