Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using permitted: restricts the allowed values that a end-user inputs to a pre-defined list #147

Merged
merged 2 commits into from
May 1, 2024

Commits on Apr 23, 2024

  1. Using permitted: restricts the allowed values that a end-user inputs …

    …to a pre-defined list.
    
    For example:
    
    opt :name, type: string, permitted: ['Jack', 'Jill']
    
    means the user can only do one of the following:
    
    $ mycmd -n Jack
    $ mycmd -n Jill
    
    It also works for multi-parameters
    
    $ mycmd -n Jack Jill
    akhoury6 committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    077bb3b View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Configuration menu
    Copy the full SHA
    72f88dd View commit details
    Browse the repository at this point in the history