"kicad-cli pcb export drill": hook up --gerber-precision.
This commit is contained in:
parent
5ae1b271e7
commit
5140fd7819
|
@ -111,11 +111,12 @@ int CLI::EXPORT_PCB_DRILL_COMMAND::doPerform( KIWAY& aKiway )
|
|||
}
|
||||
|
||||
wxString format = FROM_UTF8( m_argParser.get<std::string>( ARG_FORMAT ).c_str() );
|
||||
if( format == "excellon" )
|
||||
|
||||
if( format == wxS( "excellon" ) )
|
||||
{
|
||||
drillJob->m_format = JOB_EXPORT_PCB_DRILL::DRILL_FORMAT::EXCELLON;
|
||||
}
|
||||
else if( format == "gerber" )
|
||||
else if( format == wxS( "gerber" ) )
|
||||
{
|
||||
drillJob->m_format = JOB_EXPORT_PCB_DRILL::DRILL_FORMAT::GERBER;
|
||||
}
|
||||
|
@ -229,6 +230,7 @@ int CLI::EXPORT_PCB_DRILL_COMMAND::doPerform( KIWAY& aKiway )
|
|||
drillJob->m_excellonMinimalHeader = m_argParser.get<bool>( ARG_EXCELLON_MINIMALHEAD );
|
||||
drillJob->m_excellonCombinePTHNPTH = !m_argParser.get<bool>( ARG_EXCELLON_SEPARATE_TH );
|
||||
drillJob->m_generateMap = m_argParser.get<bool>( ARG_GENERATE_MAP );
|
||||
drillJob->m_gerberPrecision = m_argParser.get<int>( ARG_GERBER_PRECISION );
|
||||
|
||||
if( drillJob->m_gerberPrecision != 5 && drillJob->m_gerberPrecision != 6 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue