17 #ifndef HH_SENF_Utils_Console_ProgramOptions_ 18 #define HH_SENF_Utils_Console_ProgramOptions_ 1 75 template <
class Container>
97 detail::ProgramOptionsSource & config_;
116 detail::ProgramOptionsSource::ptr
OptionsConfig(
int argc,
char const ** argv);
ProgramOptions(int argc, char const **argv, DirectoryNode &root=senf::console::root())
Create ProgramOptions parser for given options.
Config/console tree directory node.
ProgramOptions & nonOptions(Container &container)
Set container to add non-option arguments to.
detail::ProgramOptionsSource::ptr OptionsConfig(int argc, char const **argv)
ConfigBundle source reading command line options.
DirectoryNode & root()
Get console root node.
void parseOptions(int argc, char const **argv, DirectoryNode &root=senf::console::root())
Parse command line options.
Internal: Provide ConfigBundle facade for a single-source config.
ProgramOptions & alias(char letter, std::string const &longOpt, bool withArg=false)
Set short option alias.
Console node tree based command line option parser.