Skip to content

Commit

Permalink
mris_seg2annot.cpp. #NF. Added --debug-vertex
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Greve committed Feb 6, 2022
1 parent 076a76b commit 1aaa70f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mris_seg2annot/mris_seg2annot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,11 @@ static int parse_commandline(int argc, char **argv) {
else if (!strcasecmp(option, "--debug")) debug = 1;
else if (!strcasecmp(option, "--checkopts")) checkoptsonly = 1;
else if (!strcasecmp(option, "--nocheckopts")) checkoptsonly = 0;

else if (!strcasecmp(option, "--debug-vertex")){
debug = 1;
sscanf(pargv[0],"%d",&Gdiag_no);
nargsused = 1;
}
else if (!strcasecmp(option, "--s")) {
if (nargc < 1) CMDargNErr(option,1);
subject = pargv[0];
Expand Down Expand Up @@ -353,6 +357,7 @@ static void print_usage(void) {
printf("\n");
printf(" --surf surfname : default is white\n");
printf(" --debug turn on debugging\n");
printf(" --debug-vertex vtxno : turn on debugging for vertex\n");
printf(" --checkopts don't run anything, just check options and exit\n");
printf(" --help print out information on how to use this program\n");
printf(" --version print out version and exit\n");
Expand Down

0 comments on commit 1aaa70f

Please sign in to comment.