00001 #include <hayai/hayai_main.hpp> 00002 00003 00004 int main(int argc, char** argv) 00005 { 00006 // Set up the main runner. 00007 ::hayai::MainRunner runner; 00008 00009 // Parse the arguments. 00010 int result = runner.ParseArgs(argc, argv); 00011 if (result) 00012 { 00013 return result; 00014 } 00015 00016 // Execute based on the selected mode. 00017 return runner.Run(); 00018 }