29#include <wx/tokenzr.h>
33#define ARG_USE_CONTOURS "--use-contours"
34#define ARG_OUTPUT_UNITS "--output-units"
41 .help(
UTF8STDSTR(
_(
"Exclude the reference designator text" ) ) )
42 .implicit_value(
true )
43 .default_value(
false );
46 .help(
UTF8STDSTR(
_(
"Exclude the value text" ) ) )
47 .implicit_value(
true )
48 .default_value(
false );
51 .help(
UTF8STDSTR(
_(
"Plot graphic items using their contours" ) ) )
52 .implicit_value(
true )
53 .default_value(
false );
56 .default_value( std::string(
"in" ) )
57 .help(
UTF8STDSTR(
_(
"Output units, valid options: mm, in" ) ) );
72 if( !wxFile::Exists( dxfJob->m_filename ) )
74 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
80 dxfJob->m_plotGraphicItemsUsingContours = m_argParser.get<
bool>(
ARG_USE_CONTOURS );
84 if( units == wxS(
"mm" ) )
88 else if( units == wxS(
"in" ) )
94 wxFprintf( stderr,
_(
"Invalid units specified\n" ) );
98 dxfJob->m_printMaskLayer = m_selectedLayers;
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)
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
#define ARG_EXCLUDE_REFDES
#define ARG_EXCLUDE_VALUE
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_ARGS
static const int ERR_INVALID_INPUT_FILE
std::vector< FAB_LAYER_COLOR > dummy
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
void addLayerArg(bool aRequire)