Skip to content

Commit

Permalink
Rewording --no-ipv4 help message
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelBoucey committed Aug 19, 2024
1 parent 5909ff6 commit 1cc57c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Usage: ip6addr [-v|--version]
Available options:
-v,--version Show version
-c,--canonical In conformation with RFC 5952 (default output)
-n,--no-ipv4 Force the rewriting of IPv4 address if necessary to
get a pure IPv6 address
-n,--no-ipv4 Force the rewriting of the IPv4 address if present to
get a pure IPv6 address made of nibbles only
-f,--full-length Full IPv6 address length
-p,--ptr PTR reverse mapping
-w,--windows-unc Windows UNC path name
Expand Down
10 changes: 5 additions & 5 deletions app/ip6addr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}

import Control.Exception
import Control.Exception (try, SomeException)
import Control.Monad (replicateM_)
import Data.Maybe
import Data.Maybe (fromJust)
import qualified Data.Text as T (pack)
import qualified Data.Text.IO as TIO (hPutStrLn, putStr, putStrLn)
import Data.Version (showVersion)
Expand All @@ -22,8 +22,7 @@ showVer = "ip6addr v"
main :: IO ()
main = do
Options{..} <- execParser opts
if showver
then failMsg $ T.pack showVer
if showver then failMsg $ T.pack showVer
else
case output of
Canonical -> out noNewline maybeIPv6Addr address unIPv6Addr
Expand Down Expand Up @@ -97,7 +96,8 @@ parseOptions =
flag' NoIPv4
( short 'n'
<> long "no-ipv4"
<> help "Force the rewriting of IPv4 address if necessary to get a pure IPv6 address"
<> help "Force the rewriting of the IPv4 address if present\
\ to get a pure IPv6 address made of nibbles only"
)
<|>
flag' FullLength
Expand Down

0 comments on commit 1cc57c3

Please sign in to comment.