Change Details
gp2rml/gp2rml.c |
189 | 189 | fprintf(stderr, |
190 | 190 | "usage: %s [-s z_scale] z_clear[mm] xy_speed z_speed [file]\n\n" |
191 | 191 | " -s z_scale scale Z axis by z_scale (default: 1.0)\n" |
| 192 | " -t top set the top elevation, in mm (default: auto-detect)\n" |
192 | 193 | " z_clear clearance above the highest peak, in mm (must be > 0)\n" |
193 | 194 | " Unit (\"mm\") can optionally be specified\n" |
194 | 195 | " xy_speed cutting speed, in mm/s\n" |
... | ... | |
206 | 207 | double p[3]; |
207 | 208 | int c; |
208 | 209 | |
209 | | while ((c = getopt(argc, argv, "s:")) != EOF) |
| 210 | while ((c = getopt(argc, argv, "s:t:")) != EOF) |
210 | 211 | switch (c) { |
211 | 212 | case 's': |
212 | | z_scale = strtod(optarg &end); |
| 213 | z_scale = strtod(optarg, &end); |
213 | 214 | if (*end) |
214 | 215 | usage(*argv); |
215 | 216 | break; |
| 217 | case 't': |
| 218 | z_max = strtod(optarg, &end); |
| 219 | if (*end && !strcmp(end, "mm")) |
| 220 | usage(*argv); |
| 221 | break; |
216 | 222 | default: |
217 | 223 | usage(*argv); |
218 | 224 | } |
Download the corresponding diff file