Skip to content

Default value not printed in help if option type boolean and default value is false #819

@hadmut

Description

@hadmut

Hi,

usually the help output generated by a thor app lists the options for the class and the actions, and shows the default value if a default value is set.

But for
method_option :save, type: :boolean, desc: "save file" , default: false

the default value is printed only of it is true, not false. (Thor 1.2.1)

regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions