89 |
|
rtargv[rtargc] = NULL; |
90 |
|
/* just asking for defaults? */ |
91 |
|
if (!strcmp(argv[gargc-1], "-defaults")) { |
92 |
+ |
printopts(); fflush(stdout); |
93 |
|
rtpath = getpath(rtargv[0], getenv("PATH"), X_OK); |
94 |
|
if (rtpath == NULL) { |
95 |
|
eputs(rtargv[0]); |
364 |
|
} |
365 |
|
/* print pure comment */ |
366 |
|
printf("# %s", s+2); |
367 |
+ |
} |
368 |
+ |
|
369 |
+ |
|
370 |
+ |
printopts() /* print out option default values */ |
371 |
+ |
{ |
372 |
+ |
printf("m=%s\t\t\t# material name\n", thisillum.matname); |
373 |
+ |
printf("f=%s\t\t\t# data file name\n", thisillum.datafile); |
374 |
+ |
printf("c=n\t\t\t\t# color none\n"); |
375 |
+ |
printf("d=%d\t\t\t\t# density of points\n", thisillum.sampdens); |
376 |
+ |
printf("s=%d\t\t\t\t# samples per point\n", thisillum.nsamps); |
377 |
|
} |
378 |
|
|
379 |
|
|