31int main(
int argc,
char **argv)
33 if (argc != 2 and argc != 4 and argc != 6)
38 std::string help_o{
"-h"};
39 std::string argv_1{argv[1]};
43 std::cout <<
"HELP MESSAGE!!" << std::endl;
48 std::string opt_o{
"-o"};
49 std::string argv_1{argv[1]};
53 std::string output_name{argv[2]};
54 std::ofstream outfile(output_name);
55 outfile <<
"dummy-compile dummy output!!" << std::endl;
60 std::string opt_T{
"--target"};
61 std::string argv_1{argv[1]};
64 std::string target_name{argv[2]};
66 std::string opt_o{
"-o"};
67 std::string argv_3{argv[3]};
71 std::string output_name{argv[4]};
72 std::ofstream outfile(output_name);
73 outfile <<
"dummy-compile with " << target_name <<
" target" << std::endl;