From 377b7f81193685f23c93546767a059e194419446 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 21 Mar 2016 19:59:38 -0300 Subject: [PATCH] fped.c: new option -m (for -p and -P) to suppress showing measurements --- fped.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/fped.c b/fped.c index 608f5a2..8535318 100644 --- a/fped.c +++ b/fped.c @@ -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);