Open gskapka opened 5 years ago
Thanks for the report @gskapka!
To fix this, we should decouple the method and args parsing in input#parseMethodParams
. Instead of trying to parse both together, we should:
input#parseArray
and get the number of arguments passed in.initialize(string,uint256)
). input#parseArg
This should allow us to delete input#parseArgs
once and for all.
Error in argument parsing in the CLI: string args containing dashes cause error. For a given
Contract
with an initializer argument of typestring
:zos create Contract --args string-withDash
or
zos create Contract --args 'string-withDash'
...both fail with: