From 5140fd781950a79b65eb522fe1813646a34d8c76 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 4 Dec 2023 21:59:26 +0300 Subject: [PATCH] "kicad-cli pcb export drill": hook up --gerber-precision. --- kicad/cli/command_export_pcb_drill.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kicad/cli/command_export_pcb_drill.cpp b/kicad/cli/command_export_pcb_drill.cpp index 47f47c42bc..eb9c4e5f29 100644 --- a/kicad/cli/command_export_pcb_drill.cpp +++ b/kicad/cli/command_export_pcb_drill.cpp @@ -111,11 +111,12 @@ int CLI::EXPORT_PCB_DRILL_COMMAND::doPerform( KIWAY& aKiway ) } wxString format = FROM_UTF8( m_argParser.get( 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( ARG_EXCELLON_MINIMALHEAD ); drillJob->m_excellonCombinePTHNPTH = !m_argParser.get( ARG_EXCELLON_SEPARATE_TH ); drillJob->m_generateMap = m_argParser.get( ARG_GENERATE_MAP ); + drillJob->m_gerberPrecision = m_argParser.get( ARG_GERBER_PRECISION ); if( drillJob->m_gerberPrecision != 5 && drillJob->m_gerberPrecision != 6 ) {