projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c20544
)
Merge "unrecognized long opt" fix from 6.4.2
author
Sven Panne
<sven.panne@aedion.de>
Sat, 6 May 2006 11:05:19 +0000
(11:05 +0000)
committer
Sven Panne
<sven.panne@aedion.de>
Sat, 6 May 2006 11:05:19 +0000
(11:05 +0000)
System/Console/GetOpt.hs
patch
|
blob
|
history
diff --git
a/System/Console/GetOpt.hs
b/System/Console/GetOpt.hs
index
c1463c0
..
fa9f9b2
100644
(file)
--- a/
System/Console/GetOpt.hs
+++ b/
System/Console/GetOpt.hs
@@
-161,7
+161,7
@@
getOpt' _ _ [] = ([],[],[],[])
getOpt' ordering optDescr (arg:args) = procNextOpt opt ordering
where procNextOpt (Opt o) _ = (o:os,xs,us,es)
procNextOpt (UnreqOpt u) _ = (os,xs,u:us,es)
- procNextOpt (NonOpt x) RequireOrder = ([],x:rest,[],[])
+ procNextOpt (NonOpt x) RequireOrder = ([],x:rest,us,[])
procNextOpt (NonOpt x) Permute = (os,x:xs,us,es)
procNextOpt (NonOpt x) (ReturnInOrder f) = (f x :os, xs,us,es)
procNextOpt EndOfOpts RequireOrder = ([],rest,[],[])