diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Actions.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Actions.hs index 5b8908b744..f9fd2686e3 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Actions.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Actions.hs @@ -378,7 +378,7 @@ pGovernanceActionTreasuryWithdrawalCmd era = do <*> pStakeIdentifier (Just "deposit-return") <*> pAnchorUrl <*> pAnchorDataHash - <*> many ((,) <$> pStakeVerificationKeyOrHashOrFile (Just "funds-receiving") <*> pTransferAmt) + <*> some ((,) <$> pStakeVerificationKeyOrHashOrFile (Just "funds-receiving") <*> pTransferAmt) <*> optional pConstitutionScriptHash <*> pFileOutDirection "out-file" "Output filepath of the treasury withdrawal." ) diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli index 25db8fed13..89bc48f9a4 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -6855,12 +6855,12 @@ Usage: cardano-cli conway governance action create-treasury-withdrawal ) --anchor-url TEXT --anchor-data-hash HASH - [ + ( ( --funds-receiving-stake-verification-key STRING | --funds-receiving-stake-verification-key-file FILE | --funds-receiving-stake-key-hash HASH ) - --transfer LOVELACE] + --transfer LOVELACE) [--constitution-script-hash HASH] --out-file FILE diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_action_create-treasury-withdrawal.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_action_create-treasury-withdrawal.cli index 7851673945..58341fbea1 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_action_create-treasury-withdrawal.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_governance_action_create-treasury-withdrawal.cli @@ -11,12 +11,12 @@ Usage: cardano-cli conway governance action create-treasury-withdrawal ) --anchor-url TEXT --anchor-data-hash HASH - [ + ( ( --funds-receiving-stake-verification-key STRING | --funds-receiving-stake-verification-key-file FILE | --funds-receiving-stake-key-hash HASH ) - --transfer LOVELACE] + --transfer LOVELACE) [--constitution-script-hash HASH] --out-file FILE