Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the cli parser for the --redeemer-value --execution-units flags #2811

Merged
merged 1 commit into from
Jun 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cardano-cli/src/Cardano/CLI/Shelley/Parsers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,15 @@ pScriptWitnessFiles witctx scriptFlagPrefix scriptFlagPrefixDeprecated help =

pScriptDataFile dataFlagPrefix =
Opt.strOption
( Opt.long (dataFlagPrefix ++ "-file")
( Opt.long (scriptFlagPrefix ++ "-" ++ dataFlagPrefix ++ "-file")
<> Opt.metavar "FILE"
<> Opt.help ("The file containing the script input "
++ dataFlagPrefix ++ ".")
)

pScriptDataValue dataFlagPrefix =
Opt.option readerScriptData
( Opt.long (dataFlagPrefix ++ "-value")
( Opt.long (scriptFlagPrefix ++ "-" ++ dataFlagPrefix ++ "-value")
<> Opt.metavar "JSON"
<> Opt.help ("The value for the script input " ++ dataFlagPrefix ++ ".")
)
Expand All @@ -290,7 +290,7 @@ pScriptWitnessFiles witctx scriptFlagPrefix scriptFlagPrefixDeprecated help =
pExecutionUnits =
uncurry ExecutionUnits <$>
Opt.option Opt.auto
( Opt.long "execution-units"
( Opt.long (scriptFlagPrefix ++ "-execution-units")
<> Opt.metavar "(INT, INT)"
<> Opt.help "The time and space units needed by the script."
)
Expand Down