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

Push indices for arguments taking optional values #4909

Closed
wants to merge 1 commit into from

Commits on May 15, 2023

  1. fix: Push indices for optional values

    When an argument takes an optional value (e.g. `.num_args(0..=1)`), make
    sure an index is pushed:
    * when a value is specified, for each value
    * when no value is specified, for the option, similar to a flag.
    
    Note: this means that a MatchedArg's `num_vals` no longer necessarily
    matches the number of indices.
    
    Fixes clap-rs#2419
    fabianfreyer committed May 15, 2023
    Configuration menu
    Copy the full SHA
    db8995d View commit details
    Browse the repository at this point in the history