28 #include <wreport/error.h>
41 int (*func)(poptContext);
42 const char* aliases[3];
46 struct poptOption* optable;
49 #define ODT_END { NULL, NULL, NULL, NULL, NULL, NULL }
61 const char* manpage_examples_section;
62 const char* manpage_files_section;
63 const char* manpage_seealso_section;
75 virtual const char* what()
const throw () {
return msg.c_str(); }
78 static void throwf(
const char* fmt, ...) WREPORT_THROWF_ATTRS(1, 2);
85 void dba_cmdline_print_dba_error();
91 void dba_cmdline_error(poptContext optCon, const
char* fmt, ...) __attribute__ ((noreturn));
96 Encoding dba_cmdline_stringToMsgType(const
char* type);
101 int dba_cmdline_dispatch_main(const struct program_info* pinfo, const struct tool_desc* desc,
int argc, const
char* argv[]);
108 unsigned dba_cmdline_get_query(poptContext optCon, Record& query);
113 void list_templates();
116 std::list<std::
string> get_filenames(poptContext optCon);
error_cmdline(const std::string &msg)
Definition: cmdline.h:72
static void throwf(const char *fmt,...) WREPORT_THROWF_ATTRS(1
Throw the exception, building the message printf-style.
In-memory storage of an encoded weather report.
std::string msg
error message returned by what()
Definition: cmdline.h:69
Report an error with command line options.
Definition: cmdline.h:67