Skip to content

Informative fails when it defines a single button  #7

@mimosinnet

Description

@mimosinnet

Thanks for the module. I use it in my scripts. I have noticed that Informative fails when it defines a single button. Example:

This command;
inform( 'Test a single button', :buttons( OK => 'OK') );
fails with
failed in binding to parameter '@buttons'; expected Positional but got Pair (:OK("OK"))

This command works:
inform( 'Test a single button', :buttons( OK => 'OK',) );

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions