diff --git a/kicad/cli/command_export_pcb_gerber.cpp b/kicad/cli/command_export_pcb_gerber.cpp index 23b9e9b84e..1a1e70bebb 100644 --- a/kicad/cli/command_export_pcb_gerber.cpp +++ b/kicad/cli/command_export_pcb_gerber.cpp @@ -71,7 +71,7 @@ CLI::EXPORT_PCB_GERBER_COMMAND::EXPORT_PCB_GERBER_COMMAND( const std::string& aN .implicit_value( true ) .default_value( false ); - m_argParser.add_argument( ARG_AUX_ORIGIN ) + m_argParser.add_argument( ARG_USE_DRILL_FILE_ORIGIN ) .help( UTF8STDSTR( _( "Use drill/place file origin" ) ) ) .implicit_value( true ) .default_value( false ); @@ -100,7 +100,7 @@ int CLI::EXPORT_PCB_GERBER_COMMAND::populateJob( JOB_EXPORT_PCB_GERBER* aJob ) aJob->m_subtractSolderMaskFromSilk = m_argParser.get( ARG_SUBTRACT_SOLDERMASK ); aJob->m_includeNetlistAttributes = !m_argParser.get( ARG_NO_NETLIST ); aJob->m_useX2Format = !m_argParser.get( ARG_NO_X2 ); - aJob->m_useAuxOrigin = !m_argParser.get( ARG_AUX_ORIGIN ); + aJob->m_useAuxOrigin = m_argParser.get( ARG_USE_DRILL_FILE_ORIGIN ); aJob->m_precision = m_argParser.get( ARG_PRECISION ); aJob->m_printMaskLayer = m_selectedLayers; diff --git a/kicad/cli/command_export_pcb_gerber.h b/kicad/cli/command_export_pcb_gerber.h index 1c579cc2b3..96f53c3995 100644 --- a/kicad/cli/command_export_pcb_gerber.h +++ b/kicad/cli/command_export_pcb_gerber.h @@ -31,7 +31,7 @@ namespace CLI #define ARG_NO_NETLIST "--no-netlist" #define ARG_SUBTRACT_SOLDERMASK "--subtract-soldermask" #define ARG_DISABLE_APERTURE_MACROS "--disable-aperture-macros" -#define ARG_AUX_ORIGIN "--aux-origin" +#define ARG_USE_DRILL_FILE_ORIGIN "--use-drill-file-origin" #define ARG_PRECISION "--precision" class EXPORT_PCB_GERBER_COMMAND : public EXPORT_PCB_BASE_COMMAND