Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
Work towards more compat
Browse files Browse the repository at this point in the history
* ...but don't support abbreviations. They are considered a misfeature
  in the original (Refer: docopt/docopt#104)
* ...but keep alias in outputs. I.e. if there's an option: "-o,
  --output", then provide the matched value for both keys:
  '{ "--output": value, "-o": value }'
  • Loading branch information
felixSchl committed Mar 14, 2016
1 parent 529dc8b commit 2909519
Show file tree
Hide file tree
Showing 3 changed files with 831 additions and 840 deletions.
2 changes: 1 addition & 1 deletion src/Language/Docopt/Parser/Desc.purs
Expand Up @@ -249,7 +249,7 @@ descParser =
opt.arg

return $ Option { name: Long opt.name
, arg: flip argument Nothing <$> opt.arg
, arg: flip argument Nothing <$> arg
, env: Nothing
}

Expand Down
12 changes: 6 additions & 6 deletions test/Main.purs
Expand Up @@ -17,10 +17,10 @@ import Control.Monad.Eff.Class (liftEff)
main = launchAff do
docoptSpec <- genDocoptSpec
liftEff $ run [consoleReporter] do
scannerSpec unit
usageParserSpec unit
descParserSpec unit
solverSpec unit
parserGenSpec unit
transSpec unit
-- scannerSpec unit
-- usageParserSpec unit
-- descParserSpec unit
-- solverSpec unit
-- parserGenSpec unit
-- transSpec unit
docoptSpec unit

0 comments on commit 2909519

Please sign in to comment.