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 ) {