Add argument shorthands
This commit is contained in:
parent
0c9898661e
commit
d8ed744f2f
@ -1,4 +1,6 @@
|
|||||||
{-# LANGUAGE RecordWildCards #-}
|
{-# LANGUAGE RecordWildCards #-}
|
||||||
|
-- | Main module
|
||||||
|
module Main where
|
||||||
|
|
||||||
import Control.Monad (when, forever)
|
import Control.Monad (when, forever)
|
||||||
import Data.Text (unpack)
|
import Data.Text (unpack)
|
||||||
@ -26,18 +28,22 @@ options :: Parser Options
|
|||||||
options = Options
|
options = Options
|
||||||
<$> switch
|
<$> switch
|
||||||
( long "interactive"
|
( long "interactive"
|
||||||
|
<> short 'i'
|
||||||
<> help "Manually insert numbers from a dice" )
|
<> help "Manually insert numbers from a dice" )
|
||||||
<*> optional (option auto
|
<*> optional (option auto
|
||||||
( long "dictionary"
|
( long "dictionary"
|
||||||
|
<> short 'd'
|
||||||
<> metavar "FILEPATH"
|
<> metavar "FILEPATH"
|
||||||
<> help "Specify dictionary filepath" ))
|
<> help "Specify dictionary filepath" ))
|
||||||
<*> option auto
|
<*> option auto
|
||||||
( long "length"
|
( long "length"
|
||||||
|
<> short 'l'
|
||||||
<> value 6
|
<> value 6
|
||||||
<> metavar "N"
|
<> metavar "N"
|
||||||
<> help "Number of words in a passphrase")
|
<> help "Number of words in a passphrase")
|
||||||
<*> option auto
|
<*> option auto
|
||||||
( long "phrases"
|
( long "phrases"
|
||||||
|
<> short 'p'
|
||||||
<> value 1
|
<> value 1
|
||||||
<> metavar "M"
|
<> metavar "M"
|
||||||
<> help "Number of passphrases to generate" )
|
<> help "Number of passphrases to generate" )
|
||||||
|
Loading…
Reference in New Issue
Block a user