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

List all parsed args #3286

Closed
2 tasks done
antonshkurenko opened this issue Jan 12, 2022 · 1 comment
Closed
2 tasks done

List all parsed args #3286

antonshkurenko opened this issue Jan 12, 2022 · 1 comment
Labels
A-parsing Area: Parser's logic and needs it changed somehow. C-enhancement Category: Raise on the bar on expectations S-duplicate Status: Closed as Duplicate

Comments

@antonshkurenko
Copy link

Please complete the following tasks

  • I have searched the discussions
  • I have searched the existing issues

Clap Version

3.0.6

Describe your use case

In clap v2 we used ArgMatches::args field for inner purpose, but now, in v3 there is no visible possibility to iterate through all parsed arguments, we'd like to update. Please, can you add that functionality?

Describe the solution you'd like

As I understand, making args field public is not an option, but maybe there is a possibility to provide copy of iterator?

Alternatives, if applicable

No response

Additional Context

No response

@antonshkurenko antonshkurenko added the C-enhancement Category: Raise on the bar on expectations label Jan 12, 2022
@epage epage added A-parsing Area: Parser's logic and needs it changed somehow. S-duplicate Status: Closed as Duplicate labels Jan 12, 2022
@epage
Copy link
Member

epage commented Jan 12, 2022

Our plan is to morph ArgMatches to be more container like. We have #1206 for providing an iterator.

Can you comment on that issue on your use case so we can keep it in mind when designing it and to understand priority (e.g. if it blocks you, exploring alternatives).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parsing Area: Parser's logic and needs it changed somehow. C-enhancement Category: Raise on the bar on expectations S-duplicate Status: Closed as Duplicate
Projects
None yet
Development

No branches or pull requests

2 participants