Lines Matching defs:helper
91 /// Mapping of the name of a helper to its implementation.
92 struct helper {
93 /// The name of the helper, as will be provided by the user on the CLI.
96 /// A pointer to the function implementing the helper.
101 /// NULL-terminated table mapping helper names to their implementations.
102 static const helper helpers[] = {
115 /// The caller must select a helper to execute by defining the HELPER
116 /// environment variable to the name of the desired helper. Think of this main
117 /// method as a subprogram dispatcher, to avoid having many individual helper
120 /// \todo Maybe we should really have individual helper binaries. It would
124 /// \param argc The user argument count; delegated to the helper.
125 /// \param argv The user arguments; delegated to the helper.
127 /// \return The exit code of the helper, which depends on the requested helper.
131 const char* command = std::getenv("HELPER");
133 std::cerr << "Usage error: HELPER must be set to a helper name\n";
137 const struct helper* iter = helpers;