[GHC] #12625: Bad error message for flags with required but missing arguments

GHC ghc-devs at haskell.org
Mon Sep 26 09:49:51 UTC 2016


#12625: Bad error message for flags with required but missing arguments
-------------------------------------+-------------------------------------
           Reporter:  dramforever    |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 {{{
 $ ghc -I
 ghc: unrecognised flag: -I
 did you mean one of:
   -I
   -F
   -v

 Usage: For basic information, try the `--help' option.
 }}}

 Which is confusing (Unrecognized `-I`. Did you mean `-I`?), and not
 informative (No mention of the missing argument)

 I expect something like "missing argument for `-I`", or a basic usage info
 on `-I` instead.

 It looks similar to #9776 to me.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12625>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list