pub fn params_from(command: &ContractCommand, matches: &ArgMatches) -> ValueExpand description
Read what clap parsed back out as the parameter object a command expects.
The contract knows what each argument was declared as, so this does not have to guess: an integer flag comes back a JSON number, a list comes back an array, and a document comes back parsed. Arguments the caller did not give are left out entirely, because defaults belong to the command and sending a parser’s view of them would overwrite a real default with a guess.