From 82ef8f9d52a6f6eee52ac06ec6baf2bcbb73f10c Mon Sep 17 00:00:00 2001 From: panne Date: Sun, 17 Apr 2005 10:06:16 +0000 Subject: [PATCH] [project @ 2005-04-17 10:06:16 by panne] Merged "unrecoginzed long opt" fix from Distribution.GetOpt MERGE TO STABLE --- System/Console/GetOpt.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Console/GetOpt.hs b/System/Console/GetOpt.hs index 4098c30..fa9f9b2 100644 --- a/System/Console/GetOpt.hs +++ b/System/Console/GetOpt.hs @@ -197,7 +197,7 @@ longOpt ls rs optDescr = long ads arg rs long [ReqArg f _] ('=':xs) rest = (Opt (f xs),rest) long [OptArg f _] [] rest = (Opt (f Nothing),rest) long [OptArg f _] ('=':xs) rest = (Opt (f (Just xs)),rest) - long _ _ rest = (UnreqOpt optStr,rest) + long _ _ rest = (UnreqOpt ("--"++ls),rest) -- handle short option shortOpt :: Char -> String -> [String] -> [OptDescr a] -> (OptKind a,[String]) -- 1.7.10.4