Change the command-line semantics for query commands
authorSimon Marlow <simonmar@microsoft.com>
Fri, 16 Nov 2007 13:20:46 +0000 (13:20 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 16 Nov 2007 13:20:46 +0000 (13:20 +0000)
commit83e0b3737f15b976fe54bd75183ec270b08d7e2f
tree72ce7dbf83e312f2077507f8936d0fcae33d5d5b
parenta9e89211976d8f689a82589d242e6ffd31c2c7c7
Change the command-line semantics for query commands

From the help text:

  Commands that query the package database (list, latest, describe,
  field) operate on the list of databases specified by the flags
  --user, --global, and --package-conf.  If none of these flags are
  given, the default is --global --user.

This makes it possible to query just a single database (e.g. the
global one without the user one), which needed tricks to accomplish
before.
docs/users_guide/packages.xml
utils/ghc-pkg/Main.hs