cardano-cli
Safe HaskellNone
LanguageHaskell2010

Cardano.CLI.EraIndependent.Ping.Option

Synopsis

Documentation

parsePingCmd :: Mod CommandFields ClientCommand Source #

pPing :: Parser PingCmd Source #

A local mirror of Cardano.Network.Ping.cmdlineParser from cardano-diffusion:ping, which cardano-cli used directly before. The library parser is built against vanilla optparse-applicative by default, while cardano-cli uses optparse-applicative-fork; using it required building cardano-diffusion with a non-default cabal flag set via cabal.project, which does not ship with the sdist.

This parser must behave exactly like cmdlineParser; it is a verbatim copy modulo qualification. Ping checks the equivalence of the two parsers, and the golden help tests pin the rendered help text.