Commit 4dc5b1f2 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Clarify comment on diff of our GetOpt fork vs base

parent 7399850e
......@@ -187,7 +187,11 @@ shortOpt y ys rs optDescr = short ads ys rs
short (OptArg f _:_) xs rest = (Opt (f (Just xs)),rest)
short [] [] rest = (UnreqOpt optStr,rest)
short [] xs rest = (UnreqOpt (optStr++xs),rest)
-- this part is different vs upstream GetOpt ^^
-- This is different vs upstream = (UnreqOpt optStr,('-':xs):rest)
-- Apparently this was part of the change so that flags that are
-- not recognised as global flags are passed on to the sub-command.
-- But why was no equivalent change required for longOpt? So could
-- this change go upstream?
-- miscellaneous error formatting
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment