changeset 77:f640c8f005c5

pads2gpcb: soldermask and clearance adjustment options added
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 01 Feb 2016 02:18:06 +0000
parents f673b6ad2a78
children be1fe110b6ab
files pads2gpcb/main.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pads2gpcb/main.c	Mon Feb 01 02:14:10 2016 +0000
+++ b/pads2gpcb/main.c	Mon Feb 01 02:18:06 2016 +0000
@@ -6,6 +6,8 @@
 #include <strings.h>
 #include "globals.h"
 
+extern long cmdline_dim_arg();
+
 static
 parse_header_line()
 {
@@ -37,11 +39,17 @@
 	extern int optind;
 	extern char *optarg;
 
-	while ((c = getopt(argc, argv, "fs:")) != EOF)
+	while ((c = getopt(argc, argv, "c:fm:s:")) != EOF)
 		switch (c) {
+		case 'c':
+			clearance_setting = cmdline_dim_arg(optarg);
+			continue;
 		case 'f':
 			write_footprint_files = 1;
 			continue;
+		case 'm':
+			soldermask_delta = cmdline_dim_arg(optarg);
+			continue;
 		case 's':
 			do_footprint_silk = 1;
 			select_drawlevel_for_silk(atoi(optarg));