]>
git.saurik.com Git - apt.git/blob - apt-private/private-cmndline.h
6a6885a330968a0d7908199d24e540f4bb3f57e2
1 #ifndef APT_PRIVATE_CMNDLINE_H
2 #define APT_PRIVATE_CMNDLINE_H
4 #include <apt-pkg/cmndline.h>
5 #include <apt-pkg/macros.h>
26 struct aptDispatchWithHelp
29 bool (*Handler
)(CommandLine
&);
32 std::vector
<aptDispatchWithHelp
> GetCommands();
33 bool ShowHelp(CommandLine
&CmdL
, aptDispatchWithHelp
const * Cmds
);
35 APT_PUBLIC
void ShowHelpListCommands(aptDispatchWithHelp
const * Cmds
);
36 APT_PUBLIC
std::vector
<CommandLine::Dispatch
> ParseCommandLine(CommandLine
&CmdL
, APT_CMD
const Binary
,
37 Configuration
* const * const Cnf
, pkgSystem
** const Sys
, int const argc
, const char * argv
[]);
38 APT_PUBLIC
unsigned short DispatchCommandLine(CommandLine
&CmdL
, std::vector
<CommandLine::Dispatch
> const &Cmds
);
40 APT_PUBLIC
std::vector
<CommandLine::Args
> getCommandArgs(APT_CMD
const Program
, char const * const Cmd
);