Add -n synonym for --names-only for apt-cache.
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:59:50 +0000 (16:59 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:59:50 +0000 (16:59 +0000)
Author: doogie
Date: 2002-11-09 22:47:19 GMT
Add -n synonym for --names-only for apt-cache.

cmdline/apt-cache.cc
debian/changelog
doc/apt-cache.8.sgml

index 6acb62c..640775e 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-cache.cc,v 1.58 2002/03/26 07:38:58 jgg Exp $
+// $Id: apt-cache.cc,v 1.59 2002/11/09 22:47:19 doogie Exp $
 /* ######################################################################
    
    apt-cache - Manages the cache files
@@ -1316,7 +1316,7 @@ int main(int argc,const char *argv[])
       {'g',"generate","APT::Cache::Generate",0},
       {'a',"all-versions","APT::Cache::AllVersions",0},
       {0,"names-only","APT::Cache::NamesOnly",0},
-      {0,"all-names","APT::Cache::AllNames",0},
+      {'n',"all-names","APT::Cache::AllNames",0},
       {0,"recurse","APT::Cache::RecurseDepends",0},
       {'c',"config-file",0,CommandLine::ConfigFile},
       {'o',"option",0,CommandLine::ArbItem},
index 6e20961..f818a39 100644 (file)
@@ -60,6 +60,7 @@ apt (0.5.5) unstable; urgency=low
     #135021.
   * apt-extracttemplates now prepends the package name when extracting
     files.  Closes: #132776
+  * Add -n synonym for --names-only for apt-cache.  Closes: #130689
 
  -- Jason Gunthorpe <jgg@debian.org>  Sun, 15 Sep 2002 17:16:59 -0600
 
index e3210c1..ef92357 100644 (file)
@@ -24,7 +24,7 @@
  <refsynopsisdiv>
    <cmdsynopsis>
       <command>apt-cache</>
-      <arg><option>-hvs</></arg>
+      <arg><option>-hvsn</></arg>
       <arg><option>-o=<replaceable/config string/</></arg>
       <arg><option>-c=<replaceable/file/</></arg>
       <group choice=req>
@@ -319,7 +319,7 @@ Reverse Provides:
      Configuration Item: <literal/APT::Cache::Generate/.
      </VarListEntry>
 
-     <VarListEntry><term><option/--names-only/</>
+     <VarListEntry><term><option/--names-only/</><term><options/-n/</>
      <ListItem><Para>
      Only search on the package names, not the long description. 
      Configuration Item: <literal/APT::Cache::NamesOnly/.