Commit b0c48a3a authored by Vikram Narayanan's avatar Vikram Narayanan
Browse files

parser: add usage information



list out all options that this program can take.
Some options are not yet implemented (TODO)

Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent bd6955cf
......@@ -9,14 +9,24 @@
#include "code_gen.h"
//#include "marshal_visitor.h"
void print_usage() {
std::cerr << "Usage:\n ./compiler [options] <idl file>\n"
"Options:\n -serverheader\t TODO (god knows)\n"
" -serversource\t generate callee code\n"
" -clientheader\t TODO (god knows)\n"
" -clientsource\t generate caller code\n";
exit(0);
}
int main(int argc, char ** argv)
{
bool pDebug = false;
if(argc != 3)
{
printf("error in number of args\n");
exit(0);
print_usage();
}
try
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment