Skip to content

Commit

Permalink
Improve cli help for script data options.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Browning committed Jun 24, 2021
1 parent 9912eb5 commit 3b880af
Showing 1 changed file with 3 additions and 3 deletions.
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 @@ -279,14 +279,14 @@ pScriptDataOrFile dataFlagPrefix =
Opt.strOption
( Opt.long (dataFlagPrefix ++ "-file")
<> Opt.metavar "FILE"
<> Opt.help "The file containing the script data."
<> Opt.help "The JSON file containing the script data."
)

pScriptDataValue =
Opt.option readerScriptData
( Opt.long (dataFlagPrefix ++ "-value")
<> Opt.metavar "JSON"
<> Opt.help "The value (in JSON syntax) for the script data."
<> Opt.metavar "JSON VALUE"
<> Opt.help "The JSON value for the script data. Supported JSON data types: string, number, object & array."
)

readerScriptData = do
Expand Down

0 comments on commit 3b880af

Please sign in to comment.