#7228 closed bug (fixed)

ghc-pkg prints an awful lot of usage information

Reported by: benmachine Owned by:
Priority: normal Milestone: 7.8.1
Component: ghc-pkg Version: 7.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

If you misspell a command with ghc-pkg, you are rewarded with 112 lines of output. Unless you have a gigantic terminal, this will tend to mean that your actual error message will disappear entirely from view.

ghc-pkg should probably just briefly refer users to --help if they want the whole thing.

Attachments (1)

0001-Make-ghc-pkg-print-less-on-error.patch (1.6 KB) - added by benmachine 22 months ago.
patch to reduce output of ghc-pkg on error

Download all attachments as: .zip

Change History (3)

Changed 22 months ago by benmachine

patch to reduce output of ghc-pkg on error

comment:1 Changed 21 months ago by igloo

  • Difficulty set to Unknown
  • Milestone set to 7.8.1
  • Status changed from new to patch

Thanks for the patch; we'll take a look

comment:2 Changed 20 months ago by igloo

  • Resolution set to fixed
  • Status changed from patch to closed

Applied:

commit 2c6939a5b0b11950712be160d2712aee0e6f8b4b
Author: Ben Millwood <thebenmachine+git@gmail.com>
Date:   Fri Sep 7 17:22:46 2012 +0100
   
    Make ghc-pkg print less on error.

Thanks!

Note: See TracTickets for help on using tickets.