25#define ARG_FORCE "--force"
34 .help(
UTF8STDSTR(
_(
"Forces the board file to be resaved regardless of versioning" ) ) )
40 std::unique_ptr<JOB_PCB_UPGRADE> upgradeJob = std::make_unique<JOB_PCB_UPGRADE>();
45 if( !wxFile::Exists( upgradeJob->m_filename ) )
47 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
void addCommonArgs(bool aInput, bool aOutput, bool aInputCanBeDir, bool aOutputIsDir)
Set up the most common of args used across cli.
argparse::ArgumentParser m_argParser
COMMAND(const std::string &aName)
Define a new COMMAND instance.
wxString m_argInput
Value of the common input arg if configured.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
int ProcessJob(KIWAY::FACE_T aFace, JOB *aJob, REPORTER *aReporter=nullptr, PROGRESS_REPORTER *aProgressReporter=nullptr)
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.