/[jscoverage]/trunk/jscoverage.c
ViewVC logotype

Diff of /trunk/jscoverage.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/main.c revision 339 by siliconforks, Fri Oct 24 16:13:57 2008 UTC trunk/jscoverage.c revision 385 by siliconforks, Thu Oct 30 03:13:23 2008 UTC
# Line 1  Line 1 
1  /*  /*
2      main.c - JSCoverage main routine      jscoverage.c - main routine for `jscoverage' program
3      Copyright (C) 2007, 2008 siliconforks.com      Copyright (C) 2007, 2008 siliconforks.com
4    
5      This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
# Line 49  Line 49 
49    
50    for (int i = 1; i < argc; i++) {    for (int i = 1; i < argc; i++) {
51      if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0) {      if (strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "--help") == 0) {
52        copy_resource_to_stream("help.txt", stdout);        copy_resource_to_stream("jscoverage-help.txt", stdout);
53        exit(EXIT_SUCCESS);        exit(EXIT_SUCCESS);
54      }      }
55      else if (strcmp(argv[i], "-V") == 0 || strcmp(argv[i], "--version") == 0) {      else if (strcmp(argv[i], "-V") == 0 || strcmp(argv[i], "--version") == 0) {
# Line 61  Line 61 
61      else if (strcmp(argv[i], "--no-highlight") == 0) {      else if (strcmp(argv[i], "--no-highlight") == 0) {
62        jscoverage_highlight = false;        jscoverage_highlight = false;
63      }      }
64        else if (strcmp(argv[i], "--mozilla") == 0) {
65          jscoverage_mozilla = true;
66          jscoverage_set_js_version("180");
67        }
68      else if (strcmp(argv[i], "--no-instrument") == 0) {      else if (strcmp(argv[i], "--no-instrument") == 0) {
69        i++;        i++;
70        if (i == argc) {        if (i == argc) {

Legend:
Removed from v.339  
changed lines
  Added in v.385

  ViewVC Help
Powered by ViewVC 1.1.24