1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-18 07:16:15 +02:00

fped.c: new option -m (for -p and -P) to suppress showing measurements

This commit is contained in:
Werner Almesberger 2016-03-21 19:59:38 -03:00
parent 228f7b47f7
commit 377b7f8119

14
fped.c
View File

@ -1,8 +1,8 @@
/*
* fped.c - Footprint editor, main function
*
* Written 2009-2012 by Werner Almesberger
* Copyright 2009-2012 by Werner Almesberger
* Written 2009-2012, 2015 by Werner Almesberger
* Copyright 2009-2012, 2015 by Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -87,14 +87,15 @@ static void usage(const char *name)
" -g [-1 package]\n"
" write gnuplot output, then exit\n"
" -k write KiCad output, then exit\n"
" -p write Postscript output, then exit\n"
" -P [-K] [-s scale] [-1 package]\n"
" -p [-m] write Postscript output, then exit\n"
" -P [-K] [-m] [-s scale] [-1 package]\n"
" write Postscript output (full page), then exit\n"
" -T test mode. Load file, then exit\n"
" -T -T test mode. Load file, dump to stdout, then exit\n\n"
"Common options:\n"
" -1 name output only the specified package\n"
" -K show the pad type key\n"
" -m do not show measurements\n"
" -s scale scale factor for -P (default: auto-scale)\n"
" -s [width]x[heigth]\n"
" auto-scale to fit within specified box. Dimensions in mm.\n"
@ -148,7 +149,7 @@ int main(int argc, char **argv)
const char *one = NULL;
int c;
while ((c = getopt(argc, argv, "1:gkps:D:I:KPTU:")) != EOF)
while ((c = getopt(argc, argv, "1:gkmps:D:I:KPTU:")) != EOF)
switch (c) {
case '1':
one = optarg;
@ -163,6 +164,9 @@ int main(int argc, char **argv)
usage(*argv);
batch = batch_kicad;
break;
case 'm':
postscript_params.show_meas = 0;
break;
case 'p':
if (batch)
usage(*argv);