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

Help hints at JSON formatting output with --out-file option #537

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 4 additions & 1 deletion cardano-cli/src/Cardano/CLI/EraBased/Options/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,10 @@ pMaybeOutputFile =
optional $ fmap File $ Opt.strOption $ mconcat
[ Opt.long "out-file"
, Opt.metavar "FILE"
, Opt.help "Optional output file. Default is to write to stdout."
, Opt.help "Optional output file. Default is to write to stdout. \
\If given, output will be formatted in JSON, otherwise\
\it will be formatted as human-readable text. Note that\
\using '/dev/stdout' outputs JSON."
, Opt.completer (Opt.bashCompleter "file")
]

Expand Down
Loading