31#define ARG_FORCE "--force"
37 _(
"Forces the footprint library to be resaved regardless of versioning" ) ) )
38 .implicit_value(
true )
39 .default_value(
false );
45 std::unique_ptr<JOB_FP_UPGRADE> fpJob = std::make_unique<JOB_FP_UPGRADE>(
true );
48 fpJob->m_outputLibraryPath =
FROM_UTF8( m_argParser.get<std::string>(
ARG_OUTPUT ).c_str() );
49 fpJob->m_force = m_argParser.get<
bool>(
ARG_FORCE );
51 if( !wxDir::Exists( fpJob->m_libraryPath ) )
53 wxFprintf( stderr,
_(
"Footprint path does not exist or is not accessible\n" ) );
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)
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