KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
command_pcb_export_base.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2022 Mark Roszko <mark.roszko@gmail.com>
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
22#include <bitset>
23#include <string_utils.h>
24
25
27 bool aInputCanBeDir, bool aOutputIsDir ) :
28 COMMAND( aName )
29{
30 addCommonArgs( true, true, aInputCanBeDir, aOutputIsDir );
31}
32
33
35{
36 m_argParser.add_argument( "-l", ARG_LAYERS )
37 .default_value( std::string() )
38 .help( UTF8STDSTR( _( "Comma separated list of untranslated layer names to include "
39 "such as F.Cu,B.Cu" ) ) )
40 .metavar( "LAYER_LIST" );
41}
42
43
45{
46 m_argParser.add_argument( "--cl", ARG_COMMON_LAYERS )
47 .default_value( std::string() )
48 .help( UTF8STDSTR( _( "Layers to include on each plot, comma separated list of "
49 "untranslated layer names to include such as F.Cu,B.Cu" ) ) )
50 .metavar( "COMMON_LAYER_LIST" );
51}
void addCommonArgs(bool aInput, bool aOutput, bool aInputCanBeDir, bool aOutputIsDir)
Set up the most common of args used across cli.
Definition: command.cpp:115
#define UTF8STDSTR(s)
Definition: command.h:27
#define ARG_COMMON_LAYERS
#define ARG_LAYERS
#define _(s)
PCB_EXPORT_BASE_COMMAND(const std::string &aName, bool aInputCanBeDir=false, bool aOutputIsDir=false)