CLI help string fixups

This commit is contained in:
Graham Keeth 2023-09-15 23:07:19 +00:00 committed by Mark Roszko
parent a6f3f04a9e
commit 8149522c34
9 changed files with 17 additions and 17 deletions

View File

@ -41,7 +41,7 @@ CLI::FP_EXPORT_SVG_COMMAND::FP_EXPORT_SVG_COMMAND() : PCB_EXPORT_BASE_COMMAND( "
m_argParser.add_argument( "-t", ARG_THEME )
.default_value( std::string() )
.help( UTF8STDSTR( _( "Color theme to use (will default to pcbnew settings)" ) ) );
.help( UTF8STDSTR( _( "Color theme to use (will default to footprint editor settings)" ) ) );
m_argParser.add_argument( "--fp", ARG_FOOTPRINT )
.default_value( std::string() )

View File

@ -30,9 +30,9 @@ struct PCB_EXPORT_COMMAND : public COMMAND
PCB_EXPORT_COMMAND() : COMMAND( "export" )
{
m_argParser.add_description(
UTF8STDSTR( _( "Export utilities (gerbers, drill, position files, etc)" ) ) );
UTF8STDSTR( _( "Export utilities (Gerbers, drill, position files, etc)" ) ) );
}
};
}
#endif
#endif

View File

@ -130,7 +130,7 @@ int CLI::PCB_EXPORT_BASE_COMMAND::doPerform( KIWAY& aKiway )
LSET layerMask = convertLayerStringList( layers, m_selectedLayersSet );
if( m_requireLayers && layerMask.Seq().size() < 1 )
{
wxFprintf( stderr, _( "At least one or more layers must be specified\n" ) );
wxFprintf( stderr, _( "At least one layer must be specified\n" ) );
return EXIT_CODES::ERR_ARGS;
}
@ -138,4 +138,4 @@ int CLI::PCB_EXPORT_BASE_COMMAND::doPerform( KIWAY& aKiway )
}
return EXIT_CODES::OK;
}
}

View File

@ -97,7 +97,7 @@ CLI::PCB_EXPORT_DRILL_COMMAND::PCB_EXPORT_DRILL_COMMAND() : PCB_EXPORT_BASE_COMM
.metavar( "MAP_FORMAT" );
m_argParser.add_argument( ARG_GERBER_PRECISION )
.help( UTF8STDSTR( _( "Precision of gerber coordinates (5 or 6)" ) ) )
.help( UTF8STDSTR( _( "Precision of Gerber coordinates (5 or 6)" ) ) )
.default_value( 6 );
}

View File

@ -38,7 +38,7 @@ CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND( const std::string& aN
addDrawingSheetArg();
addDefineArg();
m_argParser.add_description( UTF8STDSTR( _( "Plot given layers to a single gerber file" ) ) );
m_argParser.add_description( UTF8STDSTR( _( "Plot given layers to a single Gerber file" ) ) );
m_argParser.add_argument( "--erd", ARG_EXCLUDE_REFDES )
.help( UTF8STDSTR( _( "Exclude the reference designator text" ) ) )
@ -81,13 +81,13 @@ CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND( const std::string& aN
.default_value( false );
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" ) ) )
.scan<'i', int>()
.default_value( 6 )
.metavar( "PRECISION" );
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 )
.default_value( false );
}

View File

@ -42,7 +42,7 @@ CLI::PCB_EXPORT_GERBERS_COMMAND::PCB_EXPORT_GERBERS_COMMAND() :
addDrawingSheetArg();
addDefineArg();
m_argParser.add_description( UTF8STDSTR( _( "Plot multiple gerbers for a PCB, including the "
m_argParser.add_description( UTF8STDSTR( _( "Plot multiple Gerbers for a PCB, including the "
"ability to use stored board plot settings" ) ) );
m_argParser.add_argument( "--cl", ARG_COMMON_LAYERS )
@ -53,7 +53,7 @@ CLI::PCB_EXPORT_GERBERS_COMMAND::PCB_EXPORT_GERBERS_COMMAND() :
.metavar( "COMMON_LAYER_LIST" );
m_argParser.add_argument( ARG_USE_BOARD_PLOT_PARAMS )
.help( UTF8STDSTR( _( "Use the gerber plot settings already configured in the board file" ) ) )
.help( UTF8STDSTR( _( "Use the Gerber plot settings already configured in the board file" ) ) )
.implicit_value( true )
.default_value( false );
}

View File

@ -90,7 +90,7 @@ CLI::PCB_EXPORT_POS_COMMAND::PCB_EXPORT_POS_COMMAND() : PCB_EXPORT_BASE_COMMAND(
.default_value( false );
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 )
.default_value( false );
}
@ -161,7 +161,7 @@ int CLI::PCB_EXPORT_POS_COMMAND::doPerform( KIWAY& aKiway )
{
if( aPosJob->m_format == JOB_EXPORT_PCB_POS::FORMAT::GERBER )
{
wxFprintf( stderr, _( "\"both\" not supported for gerber format\n" ) );
wxFprintf( stderr, _( "\"both\" not supported for Gerber format\n" ) );
return EXIT_CODES::ERR_ARGS;
}
@ -186,4 +186,4 @@ int CLI::PCB_EXPORT_POS_COMMAND::doPerform( KIWAY& aKiway )
int exitCode = aKiway.ProcessJob( KIWAY::FACE_PCB, aPosJob.get() );
return exitCode;
}
}

View File

@ -52,7 +52,7 @@ CLI::PCB_EXPORT_SVG_COMMAND::PCB_EXPORT_SVG_COMMAND() : PCB_EXPORT_BASE_COMMAND(
m_argParser.add_argument( "-t", ARG_THEME )
.default_value( std::string() )
.help( UTF8STDSTR( _( "Color theme to use (will default to pcbnew settings)" ) ) )
.help( UTF8STDSTR( _( "Color theme to use (will default to PCB editor settings)" ) ) )
.metavar( "THEME_NAME" );
m_argParser.add_argument( ARG_NEGATIVE_SHORT, ARG_NEGATIVE )

View File

@ -42,7 +42,7 @@ CLI::SYM_EXPORT_SVG_COMMAND::SYM_EXPORT_SVG_COMMAND() : COMMAND( "svg" )
m_argParser.add_argument( "-t", ARG_THEME )
.default_value( std::string() )
.help( UTF8STDSTR( _( "Color theme to use (will default to pcbnew settings)" ) ) )
.help( UTF8STDSTR( _( "Color theme to use (will default to symbol editor settings)" ) ) )
.metavar( "THEME_NAME" );
m_argParser.add_argument( "-s", ARG_SYMBOL )
@ -89,4 +89,4 @@ int CLI::SYM_EXPORT_SVG_COMMAND::doPerform( KIWAY& aKiway )
int exitCode = aKiway.ProcessJob( KIWAY::FACE_SCH, svgJob.get() );
return exitCode;
}
}