mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-18 08:07:31 +02:00
fped.c: new option -m (for -p and -P) to suppress showing measurements
This commit is contained in:
parent
228f7b47f7
commit
377b7f8119
14
fped.c
14
fped.c
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* fped.c - Footprint editor, main function
|
* fped.c - Footprint editor, main function
|
||||||
*
|
*
|
||||||
* Written 2009-2012 by Werner Almesberger
|
* Written 2009-2012, 2015 by Werner Almesberger
|
||||||
* Copyright 2009-2012 by Werner Almesberger
|
* Copyright 2009-2012, 2015 by Werner Almesberger
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* 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"
|
" -g [-1 package]\n"
|
||||||
" write gnuplot output, then exit\n"
|
" write gnuplot output, then exit\n"
|
||||||
" -k write KiCad output, then exit\n"
|
" -k write KiCad output, then exit\n"
|
||||||
" -p write Postscript output, then exit\n"
|
" -p [-m] write Postscript output, then exit\n"
|
||||||
" -P [-K] [-s scale] [-1 package]\n"
|
" -P [-K] [-m] [-s scale] [-1 package]\n"
|
||||||
" write Postscript output (full page), then exit\n"
|
" write Postscript output (full page), then exit\n"
|
||||||
" -T test mode. Load file, then exit\n"
|
" -T test mode. Load file, then exit\n"
|
||||||
" -T -T test mode. Load file, dump to stdout, then exit\n\n"
|
" -T -T test mode. Load file, dump to stdout, then exit\n\n"
|
||||||
"Common options:\n"
|
"Common options:\n"
|
||||||
" -1 name output only the specified package\n"
|
" -1 name output only the specified package\n"
|
||||||
" -K show the pad type key\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 scale scale factor for -P (default: auto-scale)\n"
|
||||||
" -s [width]x[heigth]\n"
|
" -s [width]x[heigth]\n"
|
||||||
" auto-scale to fit within specified box. Dimensions in mm.\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;
|
const char *one = NULL;
|
||||||
int c;
|
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) {
|
switch (c) {
|
||||||
case '1':
|
case '1':
|
||||||
one = optarg;
|
one = optarg;
|
||||||
@ -163,6 +164,9 @@ int main(int argc, char **argv)
|
|||||||
usage(*argv);
|
usage(*argv);
|
||||||
batch = batch_kicad;
|
batch = batch_kicad;
|
||||||
break;
|
break;
|
||||||
|
case 'm':
|
||||||
|
postscript_params.show_meas = 0;
|
||||||
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
if (batch)
|
if (batch)
|
||||||
usage(*argv);
|
usage(*argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user