- CommandLine::Args Args[] = {
- {'h',"help","help",0},
- {'v',"version","version",0},
- {'p',"pkg-cache","Dir::Cache::pkgcache",CommandLine::HasArg},
- {'s',"src-cache","Dir::Cache::srcpkgcache",CommandLine::HasArg},
- {'q',"quiet","quiet",CommandLine::IntLevel},
- {'i',"important","APT::Cache::Important",0},
- {'f',"full","APT::Cache::ShowFull",0},
- {'g',"generate","APT::Cache::Generate",0},
- {'a',"all-versions","APT::Cache::AllVersions",0},
- {0,"names-only","APT::Cache::NamesOnly",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},
- {0,0,0,0}};
- CommandLine::Dispatch CmdsA[] = {{"help",&ShowHelp},
- {"add",&DoAdd},
- {"gencaches",&GenCaches},
- {"showsrc",&ShowSrcPackage},
- {0,0}};
- CommandLine::Dispatch CmdsB[] = {{"showpkg",&DumpPackage},
- {"stats",&Stats},
- {"dump",&Dump},
- {"dumpavail",&DumpAvail},
- {"unmet",&UnMet},
- {"search",&Search},
- {"depends",&Depends},
- {"dotty",&Dotty},
- {"show",&ShowPackage},
- {"pkgnames",&ShowPkgNames},
- {"policy",&Policy},
- {0,0}};
-
- CacheInitialize();
-
- // Set up gettext support
- setlocale(LC_ALL,"");
- textdomain(PACKAGE);