#include <vector>
#include <algorithm>
#include <stdio.h>
+#include <unistd.h>
#include <iostream>
#include <string>
#include <memory>
return true;
}
/*}}}*/
-bool ShowHelp(CommandLine &) /*{{{*/
+static bool ShowHelp(CommandLine &) /*{{{*/
{
std::cout <<
_("Usage: apt-sortpkgs [options] file1 [file2 ...]\n"
return true;
}
/*}}}*/
-std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/
+static std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/
{
return {
{nullptr, nullptr, nullptr}
/*}}}*/
int main(int argc,const char *argv[]) /*{{{*/
{
- InitLocale();
-
CommandLine CmdL;
ParseCommandLine(CmdL, APT_CMD::APT_SORTPKG, &_config, &_system, argc, argv, &ShowHelp, &GetCommands);