MCPcopy Create free account
hub / github.com/FastLED/FastLED / parse_args

Function parse_args

ci/ci-compile-pio-ci-working.py:118–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117
118def parse_args():
119 parser = argparse.ArgumentParser(
120 description="Compile FastLED examples for various boards using pio ci.util."
121 )
122 parser.add_argument(
123 "boards",
124 type=str,
125 help="Comma-separated list of boards to compile for",
126 nargs="?",
127 )
128 parser.add_argument(
129 "positional_examples",
130 type=str,
131 help="Examples to compile (positional arguments after board name)",
132 nargs="*",
133 )
134 parser.add_argument(
135 "--examples", type=str, help="Comma-separated list of examples to compile"
136 )
137 parser.add_argument(
138 "--exclude-examples", type=str, help="Examples that should be excluded"
139 )
140 parser.add_argument(
141 "--defines", type=str, help="Comma-separated list of compiler definitions"
142 )
143 parser.add_argument("--customsdk", type=str, help="custom_sdkconfig project option")
144 parser.add_argument(
145 "--extra-packages",
146 type=str,
147 help="Comma-separated list of extra packages to install",
148 )
149 parser.add_argument(
150 "--build-dir", type=str, help="Override the default build directory"
151 )
152 parser.add_argument(
153 "--interactive",
154 action="store_true",
155 help="Enable interactive mode to choose a board",
156 )
157 parser.add_argument(
158 "--no-interactive", action="store_true", help="Disable interactive mode"
159 )
160 parser.add_argument(
161 "-v", "--verbose", action="store_true", help="Enable verbose output"
162 )
163 parser.add_argument(
164 "--supported-boards",
165 action="store_true",
166 help="Print the list of supported boards and exit",
167 )
168 parser.add_argument(
169 "--symbols",
170 action="store_true",
171 help="Run symbol analysis on compiled output",
172 )
173 try:
174 args = parser.parse_intermixed_args()
175 unknown = []

Callers 1

mainFunction · 0.70

Calls 2

appendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected