From bae93ab1d08f0c90f562db9f3d835c16a31a24c3 Mon Sep 17 00:00:00 2001 From: Daniel Bergey Date: Thu, 26 Jun 2014 01:19:33 +0000 Subject: [PATCH] Use uppercase letters for diagramMultiOpts to avoid conflict with short options for diagramLoopOpts. closes #172. --- src/Diagrams/Backend/CmdLine.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Diagrams/Backend/CmdLine.hs b/src/Diagrams/Backend/CmdLine.hs index 68e61ccc..a5ff8e2b 100644 --- a/src/Diagrams/Backend/CmdLine.hs +++ b/src/Diagrams/Backend/CmdLine.hs @@ -159,16 +159,16 @@ diagramOpts = DiagramOpts <> help "OUTPUT file") -- | Command line parser for 'DiagramMultiOpts'. --- Selection is option @--selection@ or @-s@. --- List is @--list@ or @-l@. +-- Selection is option @--selection@ or @-S@. +-- List is @--list@ or @-L@. diagramMultiOpts :: Parser DiagramMultiOpts diagramMultiOpts = DiagramMultiOpts <$> (optional . strOption) - ( long "selection" <> short 's' + ( long "selection" <> short 'S' <> metavar "NAME" <> help "NAME of the diagram to render") <*> switch - ( long "list" <> short 'l' + ( long "list" <> short 'L' <> help "List all available diagrams") -- | Command line parser for 'DiagramAnimOpts'