fped.c |
1 | 1 | /* |
2 | 2 | * fped.c - Footprint editor, main function |
3 | 3 | * |
4 | | * Written 2009-2012 by Werner Almesberger |
5 | | * Copyright 2009-2012 by Werner Almesberger |
| 4 | * Written 2009-2012, 2015 by Werner Almesberger |
| 5 | * Copyright 2009-2012, 2015 by Werner Almesberger |
6 | 6 | * |
7 | 7 | * This program is free software; you can redistribute it and/or modify |
8 | 8 | * it under the terms of the GNU General Public License as published by |
... | ... | |
87 | 87 | " -g [-1 package]\n" |
88 | 88 | " write gnuplot output, then exit\n" |
89 | 89 | " -k write KiCad output, then exit\n" |
90 | | " -p write Postscript output, then exit\n" |
91 | | " -P [-K] [-s scale] [-1 package]\n" |
| 90 | " -p [-m] write Postscript output, then exit\n" |
| 91 | " -P [-K] [-m] [-s scale] [-1 package]\n" |
92 | 92 | " write Postscript output (full page), then exit\n" |
93 | 93 | " -T test mode. Load file, then exit\n" |
94 | 94 | " -T -T test mode. Load file, dump to stdout, then exit\n\n" |
95 | 95 | "Common options:\n" |
96 | 96 | " -1 name output only the specified package\n" |
97 | 97 | " -K show the pad type key\n" |
| 98 | " -m do not show measurements\n" |
98 | 99 | " -s scale scale factor for -P (default: auto-scale)\n" |
99 | 100 | " -s [width]x[heigth]\n" |
100 | 101 | " auto-scale to fit within specified box. Dimensions in mm.\n" |
... | ... | |
148 | 149 | const char *one = NULL; |
149 | 150 | int c; |
150 | 151 | |
151 | | while ((c = getopt(argc, argv, "1:gkps:D:I:KPTU:")) != EOF) |
| 152 | while ((c = getopt(argc, argv, "1:gkmps:D:I:KPTU:")) != EOF) |
152 | 153 | switch (c) { |
153 | 154 | case '1': |
154 | 155 | one = optarg; |
... | ... | |
163 | 164 | usage(*argv); |
164 | 165 | batch = batch_kicad; |
165 | 166 | break; |
| 167 | case 'm': |
| 168 | postscript_params.show_meas = 0; |
| 169 | break; |
166 | 170 | case 'p': |
167 | 171 | if (batch) |
168 | 172 | usage(*argv); |