Lines Matching full:helper
86 /// Mapping of the name of a helper to its implementation.
87 struct helper { struct
88 /// The name of the helper, as will be provided by the user on the CLI.
91 /// A pointer to the function implementing the helper.
96 /// NULL-terminated table mapping helper names to their implementations.
97 static const helper helpers[] = {
110 /// The caller must select a helper to execute by defining the HELPER
111 /// environment variable to the name of the desired helper. Think of this main
112 /// method as a subprogram dispatcher, to avoid having many individual helper
115 /// \todo Maybe we should really have individual helper binaries. It would
119 /// \param argc The user argument count; delegated to the helper.
120 /// \param argv The user arguments; delegated to the helper.
122 /// \return The exit code of the helper, which depends on the requested helper.
126 const char* command = std::getenv("HELPER"); in main()
128 std::cerr << "Usage error: HELPER must be set to a helper name\n"; in main()
132 const struct helper* iter = helpers; in main()