30#include <wx/tokenzr.h>
32#define ARG_FOOTPRINT "--footprint"
39 .default_value( std::string() )
40 .help(
UTF8STDSTR(
_(
"Color theme to use (will default to pcbnew settings)" ) ) );
43 .default_value( std::string() )
44 .help(
UTF8STDSTR(
_(
"Specific symbol to export within the library" ) ) );
48 .implicit_value(
true )
49 .default_value(
false );
59 std::unique_ptr<JOB_FP_EXPORT_SVG> svgJob = std::make_unique<JOB_FP_EXPORT_SVG>(
true );
61 svgJob->m_libraryPath =
FROM_UTF8( m_argParser.get<std::string>(
ARG_INPUT ).c_str() );
62 svgJob->m_outputDirectory =
FROM_UTF8( m_argParser.get<std::string>(
ARG_OUTPUT ).c_str() );
66 if( !wxDir::Exists( svgJob->m_libraryPath ) )
68 wxFprintf( stderr,
_(
"Footprint library does not exist or is not accessible\n" ) );
74 if( m_selectedLayers.count() > 0 )
75 svgJob->m_printMaskLayer = m_selectedLayers;
argparse::ArgumentParser m_argParser
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
int ProcessJob(KIWAY::FACE_T aFace, JOB *job)
static LSET AllLayersMask()
#define ARG_BLACKANDWHITE_DESC
#define ARG_BLACKANDWHITE
This file contains miscellaneous commonly used macros and functions.
static wxString FROM_UTF8(const char *cstring)
Convert a UTF8 encoded C string to a wxString for all wxWidgets build modes.
static const int ERR_INVALID_INPUT_FILE
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
void addLayerArg(bool aRequire)