Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
4dc5b1f2
Commit
4dc5b1f2
authored
Sep 19, 2016
by
Duncan Coutts
Browse files
Clarify comment on diff of our GetOpt fork vs base
parent
7399850e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/GetOpt.hs
View file @
4dc5b1f2
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment