Skip to content

Commit

Permalink
Move away from Opt.auto in various places
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Aug 22, 2024
1 parent 2c717d0 commit 8fe2f7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cardano-cli/src/Cardano/CLI/EraBased/Options/Node.hs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pNewCounter =

pCounterValue :: Parser Word
pCounterValue =
Opt.option Opt.auto $
Opt.option integralReader $
mconcat
[ Opt.long "counter-value"
, Opt.metavar "INT"
Expand Down
5 changes: 3 additions & 2 deletions cardano-cli/src/Cardano/CLI/Options/Ping.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module Cardano.CLI.Options.Ping
where

import Cardano.CLI.Commands.Ping
import Cardano.CLI.EraBased.Options.Common (integralReader)
import qualified Cardano.Network.Ping as CNP

import Control.Applicative ((<|>))
Expand Down Expand Up @@ -55,7 +56,7 @@ pEndPoint = fmap HostEndPoint pHost <|> fmap UnixSockEndPoint pUnixSocket
pPing :: Opt.Parser PingCmd
pPing =
PingCmd
<$> ( Opt.option Opt.auto $
<$> ( Opt.option integralReader $
mconcat
[ Opt.long "count"
, Opt.short 'c'
Expand All @@ -78,7 +79,7 @@ pPing =
, Opt.value "3001"
]
)
<*> ( Opt.option Opt.auto $
<*> ( Opt.option integralReader $
mconcat
[ Opt.long "magic"
, Opt.short 'm'
Expand Down

0 comments on commit 8fe2f7d

Please sign in to comment.