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

Diff of /trunk/jscoverage.c

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

revision 382 by siliconforks, Thu Oct 30 03:12:18 2008 UTC revision 431 by siliconforks, Wed Feb 18 18:24:51 2009 UTC
# Line 1  Line 1 
1  /*  /*
2      jscoverage.c - main routine for `jscoverage' program      jscoverage.c - main routine for `jscoverage' program
3      Copyright (C) 2007, 2008 siliconforks.com      Copyright (C) 2007, 2008, 2009 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
6      it under the terms of the GNU General Public License as published by      it under the terms of the GNU General Public License as published by
# 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 62  Line 62 
62        jscoverage_highlight = false;        jscoverage_highlight = false;
63      }      }
64      else if (strcmp(argv[i], "--mozilla") == 0) {      else if (strcmp(argv[i], "--mozilla") == 0) {
65        jscoverage_mozilla = true;        jscoverage_mode = JSCOVERAGE_MOZILLA;
66        jscoverage_set_js_version("180");        jscoverage_set_js_version("180");
67      }      }
68        else if (strcmp(argv[i], "--no-browser") == 0) {
69          jscoverage_mode = JSCOVERAGE_NO_BROWSER;
70        }
71      else if (strcmp(argv[i], "--no-instrument") == 0) {      else if (strcmp(argv[i], "--no-instrument") == 0) {
72        i++;        i++;
73        if (i == argc) {        if (i == argc) {

Legend:
Removed from v.382  
changed lines
  Added in v.431

  ViewVC Help
Powered by ViewVC 1.1.24