Skip to content

Commit

Permalink
Merge pull request #200 from diagrams/cli-options
Browse files Browse the repository at this point in the history
cli-options
  • Loading branch information
byorgey committed Jun 26, 2014
2 parents 2b460db + bae93ab commit 2198528
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Diagrams/Backend/CmdLine.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2198528

Please sign in to comment.