Skip to content

Allow multiple args values for call and instantiate commands - #480

Merged
cmichi merged 3 commits into
masterfrom
aj/fix-args-multiple-values
Apr 5, 2022
Merged

Allow multiple args values for call and instantiate commands#480
cmichi merged 3 commits into
masterfrom
aj/fix-args-multiple-values

Conversation

@ascjones

Copy link
Copy Markdown
Collaborator

After the migration from structopt to clap derive #457, the default for Vec opts is for multiple_occurrences, e.g. --args arg1 --args arg2 whereas with structopt it was multiple_values e.g. --args arg1 arg2. This resulted in an error like Found argument '2' which wasn't expected, or isn't valid in this context when providing multiple values.

As noted in docs for multiple_values, there are issues with its use so we should consider changing how contract arguments are specified.

However in the meantime this reverts to the original behaviour with structopt of accepting multiple values.

@ascjones ascjones changed the title Allow multiple values for call and instantiate commands Allow multiple args values for call and instantiate commands Mar 29, 2022
@cmichi
cmichi merged commit 3db4734 into master Apr 5, 2022
@cmichi
cmichi deleted the aj/fix-args-multiple-values branch April 5, 2022 08:33
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