Skip to content

Commit

Permalink
change to plural pNames
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-lipski committed Dec 13, 2023
1 parent cf6e8ba commit b0ff319
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ pTransactionBuildCmd era envCli = do
"Filepath of auxiliary script(s)")
<*> many pMetadataFile
<*> pFeatured (shelleyBasedToCardanoEra sbe) (optional pUpdateProposalFile)
<*> pVoteFile sbe
<*> pProposalFile sbe
<*> pVoteFiles sbe
<*> pProposalFiles sbe
<*> (OutputTxBodyOnly <$> pTxBodyFileOut <|> pCalculatePlutusScriptCost)

pChangeAddress :: Parser TxOutChangeAddress
Expand Down Expand Up @@ -216,17 +216,17 @@ pTransactionBuildRaw era =
<*> many pMetadataFile
<*> optional pProtocolParamsFile
<*> pFeatured era (optional pUpdateProposalFile)
<*> pVoteFile era
<*> pProposalFile era
<*> pVoteFiles era
<*> pProposalFiles era
<*> pTxBodyFileOut

pVoteFile :: ShelleyBasedEra era -> Parser [VoteFile In]
pVoteFile = caseShelleyToBabbageOrConwayEraOnwards
pVoteFiles :: ShelleyBasedEra era -> Parser [VoteFile In]
pVoteFiles = caseShelleyToBabbageOrConwayEraOnwards
(const $ pure [])
(const $ many (pFileInDirection "vote-file" "Filepath of the vote."))

pProposalFile :: ShelleyBasedEra era -> Parser [ProposalFile In]
pProposalFile = caseShelleyToBabbageOrConwayEraOnwards
pProposalFiles :: ShelleyBasedEra era -> Parser [ProposalFile In]
pProposalFiles = caseShelleyToBabbageOrConwayEraOnwards
(const $ pure [])
(const $ many (pFileInDirection "proposal-file" "Filepath of the proposal."))

Expand Down

0 comments on commit b0ff319

Please sign in to comment.