Use the new flag() shorthand for arg setup
This commit is contained in:
parent
58af6b8dea
commit
675e126eae
|
@ -52,8 +52,7 @@ CLI::FP_EXPORT_SVG_COMMAND::FP_EXPORT_SVG_COMMAND() : PCB_EXPORT_BASE_COMMAND( "
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_BLACKANDWHITE )
|
m_argParser.add_argument( ARG_BLACKANDWHITE )
|
||||||
.help( UTF8STDSTR( _( ARG_BLACKANDWHITE_DESC ) ) )
|
.help( UTF8STDSTR( _( ARG_BLACKANDWHITE_DESC ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,8 +38,7 @@ CLI::FP_UPGRADE_COMMAND::FP_UPGRADE_COMMAND() : PCB_EXPORT_BASE_COMMAND( "upgrad
|
||||||
m_argParser.add_argument( ARG_FORCE )
|
m_argParser.add_argument( ARG_FORCE )
|
||||||
.help( UTF8STDSTR(
|
.help( UTF8STDSTR(
|
||||||
_( "Forces the footprint library to be resaved regardless of versioning" ) ) )
|
_( "Forces the footprint library to be resaved regardless of versioning" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,8 +53,7 @@ CLI::PCB_DRC_COMMAND::PCB_DRC_COMMAND() : COMMAND( "drc" )
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_ALL_TRACK_ERRORS )
|
m_argParser.add_argument( ARG_ALL_TRACK_ERRORS )
|
||||||
.help( UTF8STDSTR( _( "Report all errors for each track" ) ) )
|
.help( UTF8STDSTR( _( "Report all errors for each track" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_UNITS )
|
m_argParser.add_argument( ARG_UNITS )
|
||||||
.default_value( std::string( "mm" ) )
|
.default_value( std::string( "mm" ) )
|
||||||
|
@ -64,31 +63,26 @@ CLI::PCB_DRC_COMMAND::PCB_DRC_COMMAND() : COMMAND( "drc" )
|
||||||
m_argParser.add_argument( ARG_SEVERITY_ALL )
|
m_argParser.add_argument( ARG_SEVERITY_ALL )
|
||||||
.help( UTF8STDSTR( _( "Report all DRC violations, this is equivalent to including "
|
.help( UTF8STDSTR( _( "Report all DRC violations, this is equivalent to including "
|
||||||
"all the other severity arguments" ) ) )
|
"all the other severity arguments" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_SEVERITY_ERROR )
|
m_argParser.add_argument( ARG_SEVERITY_ERROR )
|
||||||
.help( UTF8STDSTR( _( "Report all DRC error level violations, this can be combined "
|
.help( UTF8STDSTR( _( "Report all DRC error level violations, this can be combined "
|
||||||
"with the other severity arguments" ) ) )
|
"with the other severity arguments" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_SEVERITY_WARNING )
|
m_argParser.add_argument( ARG_SEVERITY_WARNING )
|
||||||
.help( UTF8STDSTR( _( "Report all DRC warning level violations, this can be combined "
|
.help( UTF8STDSTR( _( "Report all DRC warning level violations, this can be combined "
|
||||||
"with the other severity arguments" ) ) )
|
"with the other severity arguments" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_SEVERITY_EXCLUSIONS )
|
m_argParser.add_argument( ARG_SEVERITY_EXCLUSIONS )
|
||||||
.help( UTF8STDSTR( _( "Report all excluded DRC violations, this can be combined with "
|
.help( UTF8STDSTR( _( "Report all excluded DRC violations, this can be combined with "
|
||||||
"the other severity arguments" ) ) )
|
"the other severity arguments" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_EXIT_CODE_VIOLATIONS )
|
m_argParser.add_argument( ARG_EXIT_CODE_VIOLATIONS )
|
||||||
.help( UTF8STDSTR( _( "Return a nonzero exit code if DRC violations exist" ) ) )
|
.help( UTF8STDSTR( _( "Return a nonzero exit code if DRC violations exist" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -68,20 +68,17 @@ CLI::PCB_EXPORT_3D_COMMAND::PCB_EXPORT_3D_COMMAND( const std::string& aNa
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_FORCE, "-f" )
|
m_argParser.add_argument( ARG_FORCE, "-f" )
|
||||||
.help( UTF8STDSTR( _( "Overwrite output file" ) ) )
|
.help( UTF8STDSTR( _( "Overwrite output file" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
if( m_format == JOB_EXPORT_PCB_3D::FORMAT::STEP || m_format == JOB_EXPORT_PCB_3D::FORMAT::GLB )
|
if( m_format == JOB_EXPORT_PCB_3D::FORMAT::STEP || m_format == JOB_EXPORT_PCB_3D::FORMAT::GLB )
|
||||||
{
|
{
|
||||||
m_argParser.add_argument( ARG_GRID_ORIGIN )
|
m_argParser.add_argument( ARG_GRID_ORIGIN )
|
||||||
.help( UTF8STDSTR( _( "Use Grid Origin for output origin" ) ) )
|
.help( UTF8STDSTR( _( "Use Grid Origin for output origin" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_DRILL_ORIGIN )
|
m_argParser.add_argument( ARG_DRILL_ORIGIN )
|
||||||
.help( UTF8STDSTR( _( "Use Drill Origin for output origin" ) ) )
|
.help( UTF8STDSTR( _( "Use Drill Origin for output origin" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_NO_UNSPECIFIED )
|
m_argParser.add_argument( ARG_NO_UNSPECIFIED )
|
||||||
.help( UTF8STDSTR( _(
|
.help( UTF8STDSTR( _(
|
||||||
|
@ -92,19 +89,16 @@ CLI::PCB_EXPORT_3D_COMMAND::PCB_EXPORT_3D_COMMAND( const std::string& aNa
|
||||||
m_argParser.add_argument( ARG_NO_DNP )
|
m_argParser.add_argument( ARG_NO_DNP )
|
||||||
.help( UTF8STDSTR(
|
.help( UTF8STDSTR(
|
||||||
_( "Exclude 3D models for components with 'Do not populate' attribute" ) ) )
|
_( "Exclude 3D models for components with 'Do not populate' attribute" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "--subst-models" )
|
m_argParser.add_argument( "--subst-models" )
|
||||||
.help( UTF8STDSTR( _( "Substitute STEP or IGS models with the same name in place "
|
.help( UTF8STDSTR( _( "Substitute STEP or IGS models with the same name in place "
|
||||||
"of VRML models" ) ) )
|
"of VRML models" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_BOARD_ONLY )
|
m_argParser.add_argument( ARG_BOARD_ONLY )
|
||||||
.help( UTF8STDSTR( _( "Only generate a board with no components" ) ) )
|
.help( UTF8STDSTR( _( "Only generate a board with no components" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_INCLUDE_TRACKS )
|
m_argParser.add_argument( ARG_INCLUDE_TRACKS )
|
||||||
.help( UTF8STDSTR( _( "Export tracks" ) ) )
|
.help( UTF8STDSTR( _( "Export tracks" ) ) )
|
||||||
|
@ -113,8 +107,7 @@ CLI::PCB_EXPORT_3D_COMMAND::PCB_EXPORT_3D_COMMAND( const std::string& aNa
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_INCLUDE_ZONES )
|
m_argParser.add_argument( ARG_INCLUDE_ZONES )
|
||||||
.help( UTF8STDSTR( _( "Export zones" ) ) )
|
.help( UTF8STDSTR( _( "Export zones" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_MIN_DISTANCE )
|
m_argParser.add_argument( ARG_MIN_DISTANCE )
|
||||||
.default_value( std::string( "0.01mm" ) )
|
.default_value( std::string( "0.01mm" ) )
|
||||||
|
@ -128,8 +121,7 @@ CLI::PCB_EXPORT_3D_COMMAND::PCB_EXPORT_3D_COMMAND( const std::string& aNa
|
||||||
m_argParser.add_argument( ARG_NO_OPTIMIZE_STEP )
|
m_argParser.add_argument( ARG_NO_OPTIMIZE_STEP )
|
||||||
.help( UTF8STDSTR( _( "Do not optimize STEP file (enables writing parametric "
|
.help( UTF8STDSTR( _( "Do not optimize STEP file (enables writing parametric "
|
||||||
"curves)" ) ) )
|
"curves)" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_USER_ORIGIN )
|
m_argParser.add_argument( ARG_USER_ORIGIN )
|
||||||
|
@ -153,8 +145,7 @@ CLI::PCB_EXPORT_3D_COMMAND::PCB_EXPORT_3D_COMMAND( const std::string& aNa
|
||||||
m_argParser.add_argument( ARG_VRML_MODELS_RELATIVE )
|
m_argParser.add_argument( ARG_VRML_MODELS_RELATIVE )
|
||||||
.help( UTF8STDSTR( _( "Used with --models-dir to output relative paths in the "
|
.help( UTF8STDSTR( _( "Used with --models-dir to output relative paths in the "
|
||||||
"resulting file" ) ) )
|
"resulting file" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,23 +74,19 @@ CLI::PCB_EXPORT_DRILL_COMMAND::PCB_EXPORT_DRILL_COMMAND() : PCB_EXPORT_BASE_COMM
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_EXCELLON_MIRRORY )
|
m_argParser.add_argument( ARG_EXCELLON_MIRRORY )
|
||||||
.help( UTF8STDSTR( _( "Mirror Y axis" ) ) )
|
.help( UTF8STDSTR( _( "Mirror Y axis" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_EXCELLON_MINIMALHEAD )
|
m_argParser.add_argument( ARG_EXCELLON_MINIMALHEAD )
|
||||||
.help( UTF8STDSTR( _( "Minimal header" ) ) )
|
.help( UTF8STDSTR( _( "Minimal header" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_EXCELLON_SEPARATE_TH )
|
m_argParser.add_argument( ARG_EXCELLON_SEPARATE_TH )
|
||||||
.help( UTF8STDSTR( _( "Generate independent files for NPTH and PTH holes" ) ) )
|
.help( UTF8STDSTR( _( "Generate independent files for NPTH and PTH holes" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_GENERATE_MAP )
|
m_argParser.add_argument( ARG_GENERATE_MAP )
|
||||||
.help( UTF8STDSTR( _( "Generate map / summary of drill hits" ) ) )
|
.help( UTF8STDSTR( _( "Generate map / summary of drill hits" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_MAP_FORMAT )
|
m_argParser.add_argument( ARG_MAP_FORMAT )
|
||||||
.default_value( std::string( "pdf" ) )
|
.default_value( std::string( "pdf" ) )
|
||||||
|
|
|
@ -44,23 +44,19 @@ CLI::PCB_EXPORT_DXF_COMMAND::PCB_EXPORT_DXF_COMMAND() : PCB_EXPORT_BASE_COMMAND(
|
||||||
|
|
||||||
m_argParser.add_argument( "--erd", ARG_EXCLUDE_REFDES )
|
m_argParser.add_argument( "--erd", ARG_EXCLUDE_REFDES )
|
||||||
.help( UTF8STDSTR( _( "Exclude the reference designator text" ) ) )
|
.help( UTF8STDSTR( _( "Exclude the reference designator text" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "--ev", ARG_EXCLUDE_VALUE )
|
m_argParser.add_argument( "--ev", ARG_EXCLUDE_VALUE )
|
||||||
.help( UTF8STDSTR( _( "Exclude the value text" ) ) )
|
.help( UTF8STDSTR( _( "Exclude the value text" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "--uc", ARG_USE_CONTOURS )
|
m_argParser.add_argument( "--uc", ARG_USE_CONTOURS )
|
||||||
.help( UTF8STDSTR( _( "Plot graphic items using their contours" ) ) )
|
.help( UTF8STDSTR( _( "Plot graphic items using their contours" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "--ibt", ARG_INCLUDE_BORDER_TITLE )
|
m_argParser.add_argument( "--ibt", ARG_INCLUDE_BORDER_TITLE )
|
||||||
.help( UTF8STDSTR( _( "Include the border and title block" ) ) )
|
.help( UTF8STDSTR( _( "Include the border and title block" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "--ou", ARG_OUTPUT_UNITS )
|
m_argParser.add_argument( "--ou", ARG_OUTPUT_UNITS )
|
||||||
.default_value( std::string( "in" ) )
|
.default_value( std::string( "in" ) )
|
||||||
|
|
|
@ -42,33 +42,27 @@ CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND( const std::string& aN
|
||||||
|
|
||||||
m_argParser.add_argument( "--erd", ARG_EXCLUDE_REFDES )
|
m_argParser.add_argument( "--erd", ARG_EXCLUDE_REFDES )
|
||||||
.help( UTF8STDSTR( _( "Exclude the reference designator text" ) ) )
|
.help( UTF8STDSTR( _( "Exclude the reference designator text" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "--ev", ARG_EXCLUDE_VALUE )
|
m_argParser.add_argument( "--ev", ARG_EXCLUDE_VALUE )
|
||||||
.help( UTF8STDSTR( _( "Exclude the value text" ) ) )
|
.help( UTF8STDSTR( _( "Exclude the value text" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "--ibt", ARG_INCLUDE_BORDER_TITLE )
|
m_argParser.add_argument( "--ibt", ARG_INCLUDE_BORDER_TITLE )
|
||||||
.help( UTF8STDSTR( _( "Include the border and title block" ) ) )
|
.help( UTF8STDSTR( _( "Include the border and title block" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_NO_X2 )
|
m_argParser.add_argument( ARG_NO_X2 )
|
||||||
.help( UTF8STDSTR( _( "Do not use the extended X2 format" ) ) )
|
.help( UTF8STDSTR( _( "Do not use the extended X2 format" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_NO_NETLIST )
|
m_argParser.add_argument( ARG_NO_NETLIST )
|
||||||
.help( UTF8STDSTR( _( "Do not generate netlist attributes" ) ) )
|
.help( UTF8STDSTR( _( "Do not generate netlist attributes" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_SUBTRACT_SOLDERMASK )
|
m_argParser.add_argument( ARG_SUBTRACT_SOLDERMASK )
|
||||||
.help( UTF8STDSTR( _( "Subtract soldermask from silkscreen" ) ) )
|
.help( UTF8STDSTR( _( "Subtract soldermask from silkscreen" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_DISABLE_APERTURE_MACROS )
|
m_argParser.add_argument( ARG_DISABLE_APERTURE_MACROS )
|
||||||
.help( UTF8STDSTR( _( "Disable aperture macros" ) ) )
|
.help( UTF8STDSTR( _( "Disable aperture macros" ) ) )
|
||||||
|
@ -77,8 +71,7 @@ CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND( const std::string& aN
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_USE_DRILL_FILE_ORIGIN )
|
m_argParser.add_argument( ARG_USE_DRILL_FILE_ORIGIN )
|
||||||
.help( UTF8STDSTR( _( "Use drill/place file origin" ) ) )
|
.help( UTF8STDSTR( _( "Use drill/place file origin" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_PRECISION )
|
m_argParser.add_argument( ARG_PRECISION )
|
||||||
.help( UTF8STDSTR( _( "Precision of Gerber coordinates, valid options: 5 or 6" ) ) )
|
.help( UTF8STDSTR( _( "Precision of Gerber coordinates, valid options: 5 or 6" ) ) )
|
||||||
|
@ -88,8 +81,7 @@ CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND( const std::string& aN
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_NO_PROTEL_EXTENSION )
|
m_argParser.add_argument( ARG_NO_PROTEL_EXTENSION )
|
||||||
.help( UTF8STDSTR( _( "Use KiCad Gerber file extension" ) ) )
|
.help( UTF8STDSTR( _( "Use KiCad Gerber file extension" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -54,8 +54,7 @@ CLI::PCB_EXPORT_GERBERS_COMMAND::PCB_EXPORT_GERBERS_COMMAND() :
|
||||||
m_argParser.add_argument( ARG_USE_BOARD_PLOT_PARAMS )
|
m_argParser.add_argument( ARG_USE_BOARD_PLOT_PARAMS )
|
||||||
.help( UTF8STDSTR( _( "Use the Gerber plot settings already configured in the "
|
.help( UTF8STDSTR( _( "Use the Gerber plot settings already configured in the "
|
||||||
"board file" ) ) )
|
"board file" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -44,33 +44,27 @@ CLI::PCB_EXPORT_PDF_COMMAND::PCB_EXPORT_PDF_COMMAND() : PCB_EXPORT_BASE_COMMAND(
|
||||||
|
|
||||||
m_argParser.add_argument( "-m", ARG_MIRROR )
|
m_argParser.add_argument( "-m", ARG_MIRROR )
|
||||||
.help( UTF8STDSTR( _( "Mirror the board (useful for trying to show bottom layers)" ) ) )
|
.help( UTF8STDSTR( _( "Mirror the board (useful for trying to show bottom layers)" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "--erd", ARG_EXCLUDE_REFDES )
|
m_argParser.add_argument( "--erd", ARG_EXCLUDE_REFDES )
|
||||||
.help( UTF8STDSTR( _( "Exclude the reference designator text" ) ) )
|
.help( UTF8STDSTR( _( "Exclude the reference designator text" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "--ev", ARG_EXCLUDE_VALUE )
|
m_argParser.add_argument( "--ev", ARG_EXCLUDE_VALUE )
|
||||||
.help( UTF8STDSTR( _( "Exclude the value text" ) ) )
|
.help( UTF8STDSTR( _( "Exclude the value text" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "--ibt", ARG_INCLUDE_BORDER_TITLE )
|
m_argParser.add_argument( "--ibt", ARG_INCLUDE_BORDER_TITLE )
|
||||||
.help( UTF8STDSTR( _( "Include the border and title block" ) ) )
|
.help( UTF8STDSTR( _( "Include the border and title block" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_NEGATIVE_SHORT, ARG_NEGATIVE )
|
m_argParser.add_argument( ARG_NEGATIVE_SHORT, ARG_NEGATIVE )
|
||||||
.help( UTF8STDSTR( _( ARG_NEGATIVE_DESC ) ) )
|
.help( UTF8STDSTR( _( ARG_NEGATIVE_DESC ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_BLACKANDWHITE )
|
m_argParser.add_argument( ARG_BLACKANDWHITE )
|
||||||
.help( UTF8STDSTR( _( ARG_BLACKANDWHITE_DESC ) ) )
|
.help( UTF8STDSTR( _( ARG_BLACKANDWHITE_DESC ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "-t", ARG_THEME )
|
m_argParser.add_argument( "-t", ARG_THEME )
|
||||||
.default_value( std::string() )
|
.default_value( std::string() )
|
||||||
|
|
|
@ -64,35 +64,29 @@ CLI::PCB_EXPORT_POS_COMMAND::PCB_EXPORT_POS_COMMAND() : PCB_EXPORT_BASE_COMMAND(
|
||||||
m_argParser.add_argument( ARG_NEGATE_BOTTOM_X )
|
m_argParser.add_argument( ARG_NEGATE_BOTTOM_X )
|
||||||
.help( UTF8STDSTR( _( "Use negative X coordinates for footprints on bottom layer "
|
.help( UTF8STDSTR( _( "Use negative X coordinates for footprints on bottom layer "
|
||||||
"(ascii or csv formats only)" ) ) )
|
"(ascii or csv formats only)" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_USE_DRILL_FILE_ORIGIN )
|
m_argParser.add_argument( ARG_USE_DRILL_FILE_ORIGIN )
|
||||||
.help( UTF8STDSTR( _( "Use drill/place file origin (ascii or csv only)" ) ) )
|
.help( UTF8STDSTR( _( "Use drill/place file origin (ascii or csv only)" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_SMD_ONLY )
|
m_argParser.add_argument( ARG_SMD_ONLY )
|
||||||
.help( UTF8STDSTR( _( "Include only SMD footprints (ascii or csv only)" ) ) )
|
.help( UTF8STDSTR( _( "Include only SMD footprints (ascii or csv only)" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_EXCLUDE_FOOTPRINTS_TH )
|
m_argParser.add_argument( ARG_EXCLUDE_FOOTPRINTS_TH )
|
||||||
.help( UTF8STDSTR(
|
.help( UTF8STDSTR(
|
||||||
_( "Exclude all footprints with through-hole pads (ascii or csv only)" ) ) )
|
_( "Exclude all footprints with through-hole pads (ascii or csv only)" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_EXCLUDE_DNP )
|
m_argParser.add_argument( ARG_EXCLUDE_DNP )
|
||||||
.help( UTF8STDSTR(
|
.help( UTF8STDSTR(
|
||||||
_( "Exclude all footprints with the Do Not Populate flag set" ) ) )
|
_( "Exclude all footprints with the Do Not Populate flag set" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_GERBER_BOARD_EDGE )
|
m_argParser.add_argument( ARG_GERBER_BOARD_EDGE )
|
||||||
.help( UTF8STDSTR( _( "Include board edge layer (Gerber only)" ) ) )
|
.help( UTF8STDSTR( _( "Include board edge layer (Gerber only)" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,8 +47,7 @@ CLI::PCB_EXPORT_SVG_COMMAND::PCB_EXPORT_SVG_COMMAND() : PCB_EXPORT_BASE_COMMAND(
|
||||||
|
|
||||||
m_argParser.add_argument( "-m", ARG_MIRROR )
|
m_argParser.add_argument( "-m", ARG_MIRROR )
|
||||||
.help( UTF8STDSTR( _( "Mirror the board (useful for trying to show bottom layers)" ) ) )
|
.help( UTF8STDSTR( _( "Mirror the board (useful for trying to show bottom layers)" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( "-t", ARG_THEME )
|
m_argParser.add_argument( "-t", ARG_THEME )
|
||||||
.default_value( std::string() )
|
.default_value( std::string() )
|
||||||
|
@ -57,13 +56,11 @@ CLI::PCB_EXPORT_SVG_COMMAND::PCB_EXPORT_SVG_COMMAND() : PCB_EXPORT_BASE_COMMAND(
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_NEGATIVE_SHORT, ARG_NEGATIVE )
|
m_argParser.add_argument( ARG_NEGATIVE_SHORT, ARG_NEGATIVE )
|
||||||
.help( UTF8STDSTR( _( ARG_NEGATIVE_DESC ) ) )
|
.help( UTF8STDSTR( _( ARG_NEGATIVE_DESC ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_BLACKANDWHITE )
|
m_argParser.add_argument( ARG_BLACKANDWHITE )
|
||||||
.help( UTF8STDSTR( _( ARG_BLACKANDWHITE_DESC ) ) )
|
.help( UTF8STDSTR( _( ARG_BLACKANDWHITE_DESC ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_PAGE_SIZE )
|
m_argParser.add_argument( ARG_PAGE_SIZE )
|
||||||
.help( UTF8STDSTR( _( "Set page sizing mode (0 = page with frame and title block, 1 = "
|
.help( UTF8STDSTR( _( "Set page sizing mode (0 = page with frame and title block, 1 = "
|
||||||
|
@ -74,8 +71,7 @@ CLI::PCB_EXPORT_SVG_COMMAND::PCB_EXPORT_SVG_COMMAND() : PCB_EXPORT_BASE_COMMAND(
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_EXCLUDE_DRAWING_SHEET )
|
m_argParser.add_argument( ARG_EXCLUDE_DRAWING_SHEET )
|
||||||
.help( UTF8STDSTR( _( "No drawing sheet" ) ) )
|
.help( UTF8STDSTR( _( "No drawing sheet" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_DRILL_SHAPE_OPTION )
|
m_argParser.add_argument( ARG_DRILL_SHAPE_OPTION )
|
||||||
.help( UTF8STDSTR( _( "Set pad/via drill shape option (0 = no shape, 1 = "
|
.help( UTF8STDSTR( _( "Set pad/via drill shape option (0 = no shape, 1 = "
|
||||||
|
|
|
@ -57,14 +57,12 @@ CLI::SCH_ERC_COMMAND::SCH_ERC_COMMAND() : COMMAND( "erc" )
|
||||||
m_argParser.add_argument( ARG_SEVERITY_ALL )
|
m_argParser.add_argument( ARG_SEVERITY_ALL )
|
||||||
.help( UTF8STDSTR( _( "Report all ERC violations, this is equivalent to including "
|
.help( UTF8STDSTR( _( "Report all ERC violations, this is equivalent to including "
|
||||||
"all the other severity arguments" ) ) )
|
"all the other severity arguments" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_SEVERITY_ERROR )
|
m_argParser.add_argument( ARG_SEVERITY_ERROR )
|
||||||
.help( UTF8STDSTR( _( "Report all ERC error level violations, this can be combined "
|
.help( UTF8STDSTR( _( "Report all ERC error level violations, this can be combined "
|
||||||
"with the other severity arguments" ) ) )
|
"with the other severity arguments" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_SEVERITY_WARNING )
|
m_argParser.add_argument( ARG_SEVERITY_WARNING )
|
||||||
.help( UTF8STDSTR( _( "Report all ERC warning level violations, this can be combined "
|
.help( UTF8STDSTR( _( "Report all ERC warning level violations, this can be combined "
|
||||||
|
@ -75,13 +73,11 @@ CLI::SCH_ERC_COMMAND::SCH_ERC_COMMAND() : COMMAND( "erc" )
|
||||||
m_argParser.add_argument( ARG_SEVERITY_EXCLUSIONS )
|
m_argParser.add_argument( ARG_SEVERITY_EXCLUSIONS )
|
||||||
.help( UTF8STDSTR( _( "Report all excluded ERC violations, this can be combined "
|
.help( UTF8STDSTR( _( "Report all excluded ERC violations, this can be combined "
|
||||||
"with the other severity arguments" ) ) )
|
"with the other severity arguments" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_EXIT_CODE_VIOLATIONS )
|
m_argParser.add_argument( ARG_EXIT_CODE_VIOLATIONS )
|
||||||
.help( UTF8STDSTR( _( "Return a nonzero exit code if ERC violations exist" ) ) )
|
.help( UTF8STDSTR( _( "Return a nonzero exit code if ERC violations exist" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -79,8 +79,7 @@ CLI::SCH_EXPORT_BOM_COMMAND::SCH_EXPORT_BOM_COMMAND() : COMMAND( "bom" )
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_EXCLUDE_DNP )
|
m_argParser.add_argument( ARG_EXCLUDE_DNP )
|
||||||
.help( UTF8STDSTR( _( ARG_EXCLUDE_DNP_DESC ) ) )
|
.help( UTF8STDSTR( _( ARG_EXCLUDE_DNP_DESC ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
// Output formatting options
|
// Output formatting options
|
||||||
m_argParser.add_argument( ARG_FIELD_DELIMITER )
|
m_argParser.add_argument( ARG_FIELD_DELIMITER )
|
||||||
|
@ -105,13 +104,11 @@ CLI::SCH_EXPORT_BOM_COMMAND::SCH_EXPORT_BOM_COMMAND() : COMMAND( "bom" )
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_KEEP_TABS )
|
m_argParser.add_argument( ARG_KEEP_TABS )
|
||||||
.help( UTF8STDSTR( _( ARG_KEEP_TABS_DESC ) ) )
|
.help( UTF8STDSTR( _( ARG_KEEP_TABS_DESC ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_KEEP_LINE_BREAKS )
|
m_argParser.add_argument( ARG_KEEP_LINE_BREAKS )
|
||||||
.help( UTF8STDSTR( _( ARG_KEEP_LINE_BREAKS_DESC ) ) )
|
.help( UTF8STDSTR( _( ARG_KEEP_LINE_BREAKS_DESC ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -66,8 +66,7 @@ CLI::SCH_EXPORT_PLOT_COMMAND::SCH_EXPORT_PLOT_COMMAND( const std::string& aName,
|
||||||
.metavar( "THEME_NAME" );
|
.metavar( "THEME_NAME" );
|
||||||
m_argParser.add_argument( "-b", ARG_BLACKANDWHITE )
|
m_argParser.add_argument( "-b", ARG_BLACKANDWHITE )
|
||||||
.help( UTF8STDSTR( _( ARG_BLACKANDWHITE_DESC ) ) )
|
.help( UTF8STDSTR( _( ARG_BLACKANDWHITE_DESC ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_argParser.add_argument( "-e", ARG_EXCLUDE_DRAWING_SHEET )
|
m_argParser.add_argument( "-e", ARG_EXCLUDE_DRAWING_SHEET )
|
||||||
|
@ -79,8 +78,7 @@ CLI::SCH_EXPORT_PLOT_COMMAND::SCH_EXPORT_PLOT_COMMAND( const std::string& aName,
|
||||||
{
|
{
|
||||||
m_argParser.add_argument( ARG_EXCLUDE_PDF_PROPERTY_POPUPS )
|
m_argParser.add_argument( ARG_EXCLUDE_PDF_PROPERTY_POPUPS )
|
||||||
.help( UTF8STDSTR( _( "Do not generate property popups in PDF" ) ) )
|
.help( UTF8STDSTR( _( "Do not generate property popups in PDF" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( aPlotFormat == SCH_PLOT_FORMAT::PDF
|
if( aPlotFormat == SCH_PLOT_FORMAT::PDF
|
||||||
|
@ -89,8 +87,7 @@ CLI::SCH_EXPORT_PLOT_COMMAND::SCH_EXPORT_PLOT_COMMAND( const std::string& aName,
|
||||||
{
|
{
|
||||||
m_argParser.add_argument( "-n", ARG_NO_BACKGROUND_COLOR )
|
m_argParser.add_argument( "-n", ARG_NO_BACKGROUND_COLOR )
|
||||||
.help( UTF8STDSTR( _( "Avoid setting a background color (regardless of theme)" ) ) )
|
.help( UTF8STDSTR( _( "Avoid setting a background color (regardless of theme)" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_argParser.add_argument( "-p", ARG_PAGES )
|
m_argParser.add_argument( "-p", ARG_PAGES )
|
||||||
|
|
|
@ -56,18 +56,15 @@ CLI::SYM_EXPORT_SVG_COMMAND::SYM_EXPORT_SVG_COMMAND() : COMMAND( "svg" )
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_BLACKANDWHITE )
|
m_argParser.add_argument( ARG_BLACKANDWHITE )
|
||||||
.help( UTF8STDSTR( _( ARG_BLACKANDWHITE_DESC ) ) )
|
.help( UTF8STDSTR( _( ARG_BLACKANDWHITE_DESC ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_INC_HIDDEN_PINS )
|
m_argParser.add_argument( ARG_INC_HIDDEN_PINS )
|
||||||
.help( UTF8STDSTR( _( "Include hidden pins" ) ) )
|
.help( UTF8STDSTR( _( "Include hidden pins" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
|
|
||||||
m_argParser.add_argument( ARG_INC_HIDDEN_FIELDS )
|
m_argParser.add_argument( ARG_INC_HIDDEN_FIELDS )
|
||||||
.help( UTF8STDSTR( _( "Include hidden fields" ) ) )
|
.help( UTF8STDSTR( _( "Include hidden fields" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,7 @@ CLI::SYM_UPGRADE_COMMAND::SYM_UPGRADE_COMMAND() : COMMAND( "upgrade" )
|
||||||
m_argParser.add_argument( ARG_FORCE )
|
m_argParser.add_argument( ARG_FORCE )
|
||||||
.help( UTF8STDSTR(
|
.help( UTF8STDSTR(
|
||||||
_( "Forces the symbol library to be resaved regardless of versioning" ) ) )
|
_( "Forces the symbol library to be resaved regardless of versioning" ) ) )
|
||||||
.implicit_value( true )
|
.flag();
|
||||||
.default_value( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue