31#define ARG_FORCE "--force"
37 m_argParser.add_description(
UTF8STDSTR(
_(
"Upgrades the symbol library to the current kicad version format" ) ) );
41 _(
"Forces the symbol library to be resaved regardless of versioning" ) ) )
42 .implicit_value(
true )
43 .default_value(
false );
49 std::unique_ptr<JOB_SYM_UPGRADE> symJob = std::make_unique<JOB_SYM_UPGRADE>(
true );
51 symJob->m_libraryPath = m_argInput;
52 symJob->m_outputLibraryPath = m_argOutput;
53 symJob->m_force = m_argParser.get<
bool>(
ARG_FORCE );
55 if( !wxFile::Exists( symJob->m_libraryPath ) )
57 wxFprintf( stderr,
_(
"Symbol library does not exist or is not accessible\n" ) );
argparse::ArgumentParser m_argParser
void addCommonArgs(bool aInput, bool aOutput, bool aInputIsDir, bool aOutputIsDir)
Sets up the most common of args used across cli.
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