From 7e89d9dee25fefd95c4fb2989787ccf889e3d471 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Tue, 13 Feb 2024 18:46:17 -0500 Subject: [PATCH] Add missing parity arg to drc cli --- kicad/cli/command_pcb_drc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kicad/cli/command_pcb_drc.cpp b/kicad/cli/command_pcb_drc.cpp index e00bf2be9e..3ab386acb2 100644 --- a/kicad/cli/command_pcb_drc.cpp +++ b/kicad/cli/command_pcb_drc.cpp @@ -56,6 +56,10 @@ CLI::PCB_DRC_COMMAND::PCB_DRC_COMMAND() : COMMAND( "drc" ) .help( UTF8STDSTR( _( "Report all errors for each track" ) ) ) .flag(); + m_argParser.add_argument( ARG_PARITY ) + .help( UTF8STDSTR( _( "Test for parity between PCB and schematic" ) ) ) + .flag(); + m_argParser.add_argument( ARG_UNITS ) .default_value( std::string( "mm" ) ) .help( UTF8STDSTR( _( "Report units; valid options: in, mm, mils" ) ) ) @@ -158,6 +162,8 @@ int CLI::PCB_DRC_COMMAND::doPerform( KIWAY& aKiway ) return EXIT_CODES::ERR_ARGS; } + drcJob->m_parity = m_argParser.get( ARG_PARITY ); + int exitCode = aKiway.ProcessJob( KIWAY::FACE_PCB, drcJob.get() ); return exitCode;