[project @ 2003-05-16 08:38:59 by simonmar]
authorsimonmar <unknown>
Fri, 16 May 2003 08:38:59 +0000 (08:38 +0000)
committersimonmar <unknown>
Fri, 16 May 2003 08:38:59 +0000 (08:38 +0000)
Doc the -L ghc-pkg option.

ghc/docs/users_guide/packages.sgml

index fe54098..e6f0b7b 100644 (file)
        </varlistentry>
 
        <varlistentry>
+         <term><option>&ndash;&ndash;list-packages-local</option></term>
+         <term><option>-L</option></term>
+         <indexterm><primary><option>&ndash;&ndash;list-packages-local</option></primary></indexterm>
+         <listitem>
+           <para>Displays the list of packages installed in the
+           topmost configuration file only: that will be the
+           configuration file specified using <option>-f</option> on
+           the command line, or the system configuration file
+           otherwise.</para>
+           
+           <para>This option may be more convenient than
+           <option>-l</option> when the output needs to be parsed by
+           a script.</para>
+         </listitem>
+       </varlistentry>
+
+       <varlistentry>
          <term><option>&ndash;&ndash;remove-package <replaceable>foo</replaceable></option></term>
          <term><option>-r <replaceable>foo</replaceable></option></term>
          <indexterm><primary><option>&ndash;&ndash;delete-package</option></primary>