[GHC] #9259: GHCi should list its available command line options
GHC
ghc-devs at haskell.org
Fri Nov 21 23:04:59 UTC 2014
#9259: GHCi should list its available command line options
-------------------------------------+-------------------------------------
Reporter: jstolarek | Owner: kolmodin
Type: feature | Status: new
request | Milestone:
Priority: normal | Version:
Component: Driver | Keywords: newcomer
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: Phab:D337 |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp <austin@…>):
In [changeset:"624a7c5a2eee0c0ba486a45550680052c2c79849/ghc"]:
{{{
#!CommitTicketReference repository="ghc"
revision="624a7c5a2eee0c0ba486a45550680052c2c79849"
ghc: allow --show-options and --interactive together
Summary:
Previously 'ghc --show-options' showed all options that GHC can possibly
accept. With this patch, it'll only show the options that have effect in
non-interactive modes.
This change also adds support for using 'ghc --interactive --show-options'
which previously was disallowed. This command will show all options that
have
effect in the interactive mode.
The CmdLineParser is updated to know about the GHC modes, and then each
flag
is annotated with which mode it has effect.
This fixes #9259.
Test Plan:
Try out --show-options with --interactive on the command line. With and
without
--interactive should give different results.
Run the test suite, mode001 has been updated to verify this new flag
combination.
Reviewers: austin, jstolarek
Reviewed By: austin, jstolarek
Subscribers: jstolarek, thomie, carter, simonmar
Differential Revision: https://phabricator.haskell.org/D337
GHC Trac Issues: #9259
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9259#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list