127 if( !drillJob->GetConfiguredOutputPath().IsEmpty() )
129 wxFileName fn( drillJob->GetConfiguredOutputPath(), wxEmptyString );
133 wxFprintf( stderr,
_(
"Output must be a directory\n" ) );
140 if( format == wxS(
"excellon" ) )
144 else if( format == wxS(
"gerber" ) )
150 wxFprintf( stderr,
_(
"Invalid drill format\n" ) );
156 if( units == wxS(
"mm" ) )
160 else if( units == wxS(
"in" ) )
166 wxFprintf( stderr,
_(
"Invalid units specified\n" ) );
172 if( zeroFormat == wxS(
"decimal" ) )
176 else if( zeroFormat == wxS(
"suppressleading" ) )
180 else if( zeroFormat == wxS(
"suppresstrailing" ) )
184 else if( zeroFormat == wxS(
"keep" ) )
190 wxFprintf( stderr,
_(
"Invalid zeros format specified\n" ) );
194 wxString drillFormat =
197 if( drillFormat == wxS(
"route" ) )
199 drillJob->m_excellonOvalDrillRoute =
true;
201 else if( drillFormat == wxS(
"alternate" ) )
203 drillJob->m_excellonOvalDrillRoute =
false;
207 wxFprintf( stderr,
_(
"Invalid oval drill format specified\n" ) );
213 if( mapFormat == wxS(
"pdf" ) )
217 else if( mapFormat == wxS(
"ps" ) )
221 else if( mapFormat == wxS(
"gerberx2" ) )
225 else if( mapFormat == wxS(
"dxf" ) )
229 else if( mapFormat == wxS(
"svg" ) )
235 wxFprintf( stderr,
_(
"Invalid map format specified\n" ) );
241 if( origin == wxS(
"absolute" ) )
245 else if( origin == wxS(
"plot" ) )
251 wxFprintf( stderr,
_(
"Invalid origin mode specified\n" ) );
263 if( drillJob->m_gerberPrecision != 5 && drillJob->m_gerberPrecision != 6 )
265 wxFprintf( stderr,
_(
"Gerber coordinate precision should be either 5 or 6\n" ) );
269 wxString reportPath = drillJob->m_reportPath =
271 if( drillJob->m_generateReport )
273 drillJob->m_reportPath = reportPath;
275 else if( !reportPath.IsEmpty() )
277 wxFprintf( stderr,
_(
"Warning: Report path supplied without --generate-report, no report will be generated\n" ) );