cli: refactor flag reading (#6884)
* cli: refactor ReadPersistentCommandFlags * updates * fix tetts * cover all cases * fix tests * fix tests * fix tests * fix tests * godoc++ Co-authored-by: Aaron Craelius <aaron@regen.network>
This commit is contained in:
co-authored by
Aaron Craelius
parent
eb08781e8a
commit
9ccec075e2
@@ -49,9 +49,10 @@ func (s *IntegrationTestSuite) TestNewQuerySubspaceParamsCmd() {
|
||||
expectedOutput string
|
||||
}{
|
||||
{
|
||||
"default output",
|
||||
"json output",
|
||||
[]string{
|
||||
"staking", "MaxValidators",
|
||||
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
|
||||
},
|
||||
`{"subspace":"staking","key":"MaxValidators","value":"100"}`,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user