]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-config.cc
fix file ownership tests to work on kfreebsd
[apt.git] / cmdline / apt-config.cc
index 40ba468eb3eb5e7ee03d721f59b7064db4bc0494..e0b8a624eeb7efdea1c598f58a8bc398bffe5bbe 100644 (file)
@@ -115,19 +115,8 @@ int main(int argc,const char *argv[])                                      /*{{{*/
    textdomain(PACKAGE);
 
    // Parse the command line and initialize the package library
-   CommandLine CmdL(Args.data(),_config);
-   if (pkgInitConfig(*_config) == false ||
-       CmdL.Parse(argc,argv) == false ||
-       pkgInitSystem(*_config,_system) == false)
-   {
-      _error->DumpErrors();
-      return 100;
-   }
-
-   // See if the help should be shown
-   if (_config->FindB("help") == true ||
-       CmdL.FileSize() == 0)
-      return ShowHelp(CmdL);
+   CommandLine CmdL;
+   ParseCommandLine(CmdL, Cmds, Args.data(), &_config, &_system, argc, argv, ShowHelp);
 
    std::vector<std::string> const langs = APT::Configuration::getLanguages(true);
    _config->Clear("Acquire::Languages");