30#define ARG_FORMAT "--format"
38 .default_value( std::string(
"plain" ) )
39 .help(
UTF8STDSTR(
_(
"version info format (plain, commit, about)" ) ) );
56 if( format == wxS(
"plain" ) )
60 else if( format == wxS(
"commit" ) )
64 else if( format == wxS(
"about" ) )
67 wxPrintf(
"%s\n", msg_version );
71 wxFprintf( stderr,
_(
"Invalid format\n" ) );
wxString GetVersionInfoData(const wxString &aTitle, bool aHtml, bool aBrief)
Create a version info string for bug reports and the about dialog.
wxString GetCommitHash()
Get the commit hash as a string.
wxString GetMajorMinorPatchVersion()
Get the major, minor and patch version in a string major.minor.patch This is extracted by CMake from ...
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...
static const int ERR_ARGS
wxString From_UTF8(const char *cstring)