cmdlineoptions/c/example.c

18 lines
295 B
C
Raw Normal View History

2013-12-27 19:59:33 +01:00
#include "cmdlineoptions.h"
void configureOptions() {
CmdOptions_Init(1);
CmdOptions_Add("test","--test");
CmdOptions_Add("test","-t");
CmdOptions_AddDescription("test","This is a test Option.");
}
int main(int argc, char** argv) {
configureOptions();
CmdOptions_Parse(argc,argv);
}