aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apps/AddPath.hs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/AddPath.hs')
-rw-r--r--apps/AddPath.hs25
1 files changed, 13 insertions, 12 deletions
diff --git a/apps/AddPath.hs b/apps/AddPath.hs
index 1b27b84..da68009 100644
--- a/apps/AddPath.hs
+++ b/apps/AddPath.hs
@@ -30,18 +30,19 @@ optionParser = Options
<*> optGlobalDesc
<*> optPathsDesc
where
- optNameDesc = strOption $
- long "name" <> short 'n' <> metavar "NAME" <> value "PATH" <>
- help "Variable name ('PATH' by default)"
- optYesDesc = switch $
- long "yes" <> short 'y' <>
- help "Skip confirmation prompt"
- optGlobalDesc = switch $
- long "global" <> short 'g' <>
- help "Add for all users"
- optPathsDesc = many $ argument str $
- metavar "PATH" <>
- help "Directories to add"
+ optNameDesc = strOption
+ $ long "name" <> short 'n'
+ <> metavar "NAME" <> value "PATH"
+ <> help "Variable name ('PATH' by default)"
+ optYesDesc = switch
+ $ long "yes" <> short 'y'
+ <> help "Skip confirmation prompt"
+ optGlobalDesc = switch
+ $ long "global" <> short 'g'
+ <> help "Add for all users"
+ optPathsDesc = many
+ $ argument str $ metavar "PATH"
+ <> help "Directories to add"
main :: IO ()
main = execParser parser >>= addPath