27#define ARG_EXCLUDE_NO_PADS "--exclude-footprints-without-pads" 
   28#define ARG_SUBTRACT_HOLES "--subtract-holes-from-board" 
   29#define ARG_SUBTRACT_HOLES_COPPER "--subtract-holes-from-copper" 
   30#define ARG_FORMAT "--format" 
   31#define ARG_UNITS "--units" 
   39            .default_value( std::string( 
"report" ) )
 
   44            .default_value( std::string( 
"mm" ) )
 
 
   68    if( !wxFile::Exists( statsJob->m_filename ) )
 
   70        wxFprintf( stderr, 
_( 
"Board file does not exist or is not accessible\n" ) );
 
   80    if( format == 
"report" )
 
   82    else if( format == 
"json" )
 
   86        wxFprintf( stderr, 
_( 
"Invalid report format\n" ) );
 
   92    if( units == wxS( 
"mm" ) )
 
   94    else if( units == wxS( 
"in" ) || units == wxS( 
"inch" ) )
 
   98        wxFprintf( stderr, 
_( 
"Invalid units specified\n" ) );
 
 
argparse::ArgumentParser m_argParser
 
wxString m_argOutput
Value of the output arg if configured.
 
wxString m_argInput
Value of the common input arg if configured.
 
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
 
PCB_EXPORT_STATS_COMMAND()
 
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)
 
#define ARG_SUBTRACT_HOLES
 
#define ARG_EXCLUDE_NO_PADS
 
#define ARG_SUBTRACT_HOLES_COPPER
 
static const int ERR_ARGS
 
static const int ERR_INVALID_INPUT_FILE
 
wxString From_UTF8(const char *cstring)
 
PCB_EXPORT_BASE_COMMAND(const std::string &aName, bool aInputCanBeDir=false, bool aOutputIsDir=false)