util/qlalr/main.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    62        << "  --help, -h\t\tdisplay this help and exit" << endl
    62        << "  --help, -h\t\tdisplay this help and exit" << endl
    63        << "  --verbose, -v\t\tverbose output" << endl
    63        << "  --verbose, -v\t\tverbose output" << endl
    64        << "  --no-debug\t\tno debug information" << endl
    64        << "  --no-debug\t\tno debug information" << endl
    65        << "  --no-lines\t\tno #line directives" << endl
    65        << "  --no-lines\t\tno #line directives" << endl
    66        << "  --dot\t\t\tgenerate a graph" << endl
    66        << "  --dot\t\t\tgenerate a graph" << endl
    67        << "  --troll\t\tadd the Trolltech copyright header" << endl
    67        << "  --qt\t\tadd the Qt copyright header and Qt-specific types and macros" << endl
    68        << endl;
    68        << endl;
    69   exit (0);
    69   exit (0);
    70 }
    70 }
    71 
    71 
    72 int main (int argc, char *argv[])
    72 int main (int argc, char *argv[])
    98         no_lines = true;
    98         no_lines = true;
    99 
    99 
   100       else if (arg == QLatin1String ("--no-debug"))
   100       else if (arg == QLatin1String ("--no-debug"))
   101         debug_info = false;
   101         debug_info = false;
   102 
   102 
   103       else if (arg == QLatin1String ("--troll"))
   103       else if (arg == QLatin1String ("--qt"))
   104         troll_copyright = true;
   104         troll_copyright = true;
   105 
   105 
   106       else if (file_name.isEmpty ())
   106       else if (file_name.isEmpty ())
   107 	file_name = arg;
   107 	file_name = arg;
   108 
   108