Skip to content

Commit

Permalink
Merge pull request #585 from IntersectMBO/mkoura/fix_drep_queries_help
Browse files Browse the repository at this point in the history
Update help for `drep-stake-distribution` and `drep-state` queries
  • Loading branch information
mkoura authored Jan 23, 2024
2 parents b228e83 + e6aed83 commit 0dee64b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ pQueryDRepStateCmd era envCli = do
pure
$ subParser "drep-state"
$ Opt.info (QueryDRepStateCmd <$> pQueryDRepStateCmdArgs w)
$ Opt.progDesc "Get the DRep state. If no DRep credentials are provided, return states for all of them."
$ Opt.progDesc "Get the DRep state."
where
pQueryDRepStateCmdArgs :: ConwayEraOnwards era -> Parser (QueryDRepStateCmdArgs era)
pQueryDRepStateCmdArgs w =
Expand All @@ -334,7 +334,7 @@ pQueryDRepStakeDistributionCmd era envCli = do
pure
$ subParser "drep-stake-distribution"
$ Opt.info (QueryDRepStakeDistributionCmd <$> pQueryDRepStakeDistributionCmdArgs w)
$ Opt.progDesc "Get the DRep stake distribution. If no DRep credentials are provided, return stake distributions for all of them."
$ Opt.progDesc "Get the DRep stake distribution."
where
pQueryDRepStakeDistributionCmdArgs :: ConwayEraOnwards era -> Parser (QueryDRepStakeDistributionCmdArgs era)
pQueryDRepStakeDistributionCmdArgs w = QueryDRepStakeDistributionCmdArgs w
Expand Down
6 changes: 2 additions & 4 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -6723,8 +6723,7 @@ Usage: cardano-cli conway query drep-state --socket-path SOCKET_PATH
)
[--out-file FILE]

Get the DRep state. If no DRep credentials are provided, return states for all
of them.
Get the DRep state.

Usage: cardano-cli conway query drep-stake-distribution
--socket-path SOCKET_PATH
Expand All @@ -6742,8 +6741,7 @@ Usage: cardano-cli conway query drep-stake-distribution
)
[--out-file FILE]

Get the DRep stake distribution. If no DRep credentials are provided, return
stake distributions for all of them.
Get the DRep stake distribution.

Usage: cardano-cli conway query committee-state --socket-path SOCKET_PATH
[--cardano-mode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ Available commands:
slot-number Query slot number for UTC timestamp
constitution Get the constitution
gov-state Get the governance state
drep-state Get the DRep state. If no DRep credentials are
provided, return states for all of them.
drep-stake-distribution Get the DRep stake distribution. If no DRep
credentials are provided, return stake distributions
for all of them.
drep-state Get the DRep state.
drep-stake-distribution Get the DRep stake distribution.
committee-state Get the committee state
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ Usage: cardano-cli conway query drep-stake-distribution
)
[--out-file FILE]

Get the DRep stake distribution. If no DRep credentials are provided, return
stake distributions for all of them.
Get the DRep stake distribution.

Available options:
--socket-path SOCKET_PATH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ Usage: cardano-cli conway query drep-state --socket-path SOCKET_PATH
)
[--out-file FILE]

Get the DRep state. If no DRep credentials are provided, return states for all
of them.
Get the DRep state.

Available options:
--socket-path SOCKET_PATH
Expand Down

0 comments on commit 0dee64b

Please sign in to comment.