7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-14 19:39:35 +00:00

kicad-cli: Register --include-excluded-from-bom argument

ea904c9f introduced a new cli argument to `kicad-cli sch export bom`,
but it did not actually register it with the argument parser.  Any
invocation of `kicad-cli sch export bom` currently results in this
error:

  Error: Unhandled exception class: St11logic_error  what: No such
argument: --include-excluded-from-bom

This patch adds the registration.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19335
This commit is contained in:
Rob Gilton 2024-12-21 00:48:43 +00:00 committed by dsa-t
parent b01892943b
commit 89c0664217

View File

@ -82,6 +82,10 @@ CLI::SCH_EXPORT_BOM_COMMAND::SCH_EXPORT_BOM_COMMAND() : COMMAND( "bom" )
.help( UTF8STDSTR( _( ARG_EXCLUDE_DNP_DESC ) ) )
.flag();
m_argParser.add_argument( ARG_INCLUDE_EXCLUDED_FROM_BOM )
.help( UTF8STDSTR( _( ARG_INCLUDE_EXCLUDED_FROM_BOM_DESC ) ) )
.flag();
// Output formatting options
m_argParser.add_argument( ARG_FIELD_DELIMITER )
.help( UTF8STDSTR( _( ARG_FIELD_DELIMITER_DESC ) ) )