31#define ARG_FORCE "--force"
35 m_argParser.add_description(
UTF8STDSTR(
_(
"Upgrades the footprint library to the current kicad version format" ) ) );
39 _(
"Forces the footprint library to be resaved regardless of versioning" ) ) )
40 .implicit_value(
true )
41 .default_value(
false );
47 std::unique_ptr<JOB_FP_UPGRADE> fpJob = std::make_unique<JOB_FP_UPGRADE>(
true );
49 fpJob->m_libraryPath = m_argInput;
50 fpJob->m_outputLibraryPath = m_argOutput;
51 fpJob->m_force = m_argParser.get<
bool>(
ARG_FORCE );
53 if( !wxDir::Exists( fpJob->m_libraryPath ) )
55 wxFprintf( stderr,
_(
"Footprint library 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 const int ERR_INVALID_INPUT_FILE