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

Allow mixing args and xdr args #96

Merged
merged 4 commits into from
Aug 29, 2022

Conversation

2opremio
Copy link
Contributor

What

It allows mixing --arg and --arg-xdr arguments.

Additionally we will now complain when more arguments that needed are provided (up until now we allowed providing more arguments and just using the first needed)

Implementation detail: when using Clap's #derive API, the position of the arguments isn't saved so I had to expand the call to Root::parse() in order to save the arguments matches (which contains the ordering) and pass it down to the invoke subcommand.

Why

Addresses part of #22

Known limitations

N/A

Copy link
Contributor

@paulbellamy paulbellamy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sick. 🎉

src/invoke.rs Outdated Show resolved Hide resolved
src/invoke.rs Show resolved Hide resolved
@2opremio 2opremio merged commit d64e865 into stellar:main Aug 29, 2022
@2opremio 2opremio deleted the mixed-args-and-xdr-args branch August 29, 2022 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants