21 #include <odinseq/seqclass.h>
23 #define USAGE_INDENTION_FACTOR 2
30 struct SeqCmdlineActionList {};
32 struct SeqCmdlineAction {
33 SeqCmdlineAction(
const STD_string& act,
const STD_string& descr) : action(act), description(descr) {}
34 void add_req_arg(
const STD_string& opt,
const STD_string& descr) {req_args[opt]=descr;}
35 void add_opt_arg(
const STD_string& opt,
const STD_string& descr) {opt_args[opt]=descr;}
37 STD_string description;
38 STD_map<STD_string,STD_string> req_args;
39 STD_map<STD_string,STD_string> opt_args;
42 typedef STD_list<SeqCmdlineAction> SeqCmdlineActionList;
56 static int process(
int argc,
char *argv[]);
58 static STD_string format_actions(
const SeqCmdlineActionList& actions);
61 static STD_string usage(
const STD_string& meth,
const STD_string& description);