Skip to content

ShellOption booleans are now mandatory in 2.1.0-RC1 #461

Closed
@mjeffrey

Description

@mjeffrey

For the option

@ShellOption boolean withBalance

In 2.0.1 this option was optional (and set to false if not supplied)

shell:>account
iban=null, with-balance=false
shell:>account --with-balance
iban=null, with-balance=true

In 2.1.0-RC1 this is mandatory, so you need to write: --withBalance false

shell:>account
Missing option, longnames='withBalance', shortnames=''

A testcase may be found here (see README.md for how to run it in each version):
https://github.com/mjeffrey/spring-shell-testcase

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions