Add missing parity arg to drc cli

This commit is contained in:
Marek Roszko 2024-02-13 18:46:17 -05:00
parent 6eaef41e51
commit 7e89d9dee2
1 changed files with 6 additions and 0 deletions

View File

@ -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<bool>( ARG_PARITY );
int exitCode = aKiway.ProcessJob( KIWAY::FACE_PCB, drcJob.get() );
return exitCode;