return AddOrIdent(false);
}
/*}}}*/
-bool ShowHelp(CommandLine &) /*{{{*/
+static bool ShowHelp(CommandLine &) /*{{{*/
{
std::cout <<
_("Usage: apt-cdrom [options] command\n"
return true;
}
/*}}}*/
-std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/
+static std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/
{
return {
{"add", &DoAdd, "Add a CDROM"},
/*}}}*/
int main(int argc,const char *argv[]) /*{{{*/
{
- InitLocale();
-
// Parse the command line and initialize the package library
CommandLine CmdL;
auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_CDROM, &_config, &_system, argc, argv, &ShowHelp, &GetCommands);