Skip to content

Commit

Permalink
Merge #2863
Browse files Browse the repository at this point in the history
2863: Improve cli help for script data options. r=james-iohk a=james-iohk

Clarify what is supported when using script data `file` or `value` options.

I decided it is worth listing the data types because bool and null are not supported.

Co-authored-by: James Browning <james.browning@iohk.io>
  • Loading branch information
iohk-bors[bot] and James Browning committed Jun 25, 2021
2 parents 17ddceb + 3b880af commit 0d1cc77
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 0d1cc77

Please sign in to comment.