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

Diff of /trunk/jscoverage.c

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

revision 191 by siliconforks, Tue Sep 23 03:49:29 2008 UTC revision 339 by siliconforks, Fri Oct 24 16:13:57 2008 UTC
# Line 53  Line 53 
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) {
56        printf("jscoverage %s\n", VERSION);        version();
       exit(EXIT_SUCCESS);  
57      }      }
58      else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--verbose") == 0) {      else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--verbose") == 0) {
59        verbose = 1;        verbose = 1;
# Line 96  Line 95 
95      else if (strncmp(argv[i], "--encoding=", 11) == 0) {      else if (strncmp(argv[i], "--encoding=", 11) == 0) {
96        jscoverage_encoding = argv[i] + 11;        jscoverage_encoding = argv[i] + 11;
97      }      }
98        else if (strcmp(argv[i], "--js-version") == 0) {
99          i++;
100          if (i == argc) {
101            fatal_command_line("--js-version: option requires an argument");
102          }
103          jscoverage_set_js_version(argv[i]);
104        }
105        else if (strncmp(argv[i], "--js-version=", 13) == 0) {
106          jscoverage_set_js_version(argv[i] + 13);
107        }
108      else if (strncmp(argv[i], "-", 1) == 0) {      else if (strncmp(argv[i], "-", 1) == 0) {
109        fatal_command_line("unrecognized option `%s'", argv[i]);        fatal_command_line("unrecognized option `%s'", argv[i]);
110      }      }

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

  ViewVC Help
Powered by ViewVC 1.1.24