Commit 72f7b88
authored
cli: Fix multisig parsing (#72)
* cli: Fix multisig parsing
#### Problem
As pointed out in #58, the CLI currently fails when just running
`create-account <MINT_ADDRESS>`, because a multisig argument is expected
during all commands. Clap v3's version of `values_of` gives an error if
the arg is not configured in the command.
This was probably missed during the port over to clap v3.
#### Summary of changes
Do the same thing as elsewhere, and change `values_of` to
`try_get_many(...).ok().flatten()`.
This is the last place using `values_of` in the CLI that could fail.
* Integrate review feedback1 parent 79f4736 commit 72f7b88
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments