MCPcopy Index your code
hub / github.com/plotly/dash / component_build_arg_parser

Function component_build_arg_parser

dash/development/component_generator.py:189–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187
188
189def component_build_arg_parser():
190 parser = argparse.ArgumentParser(
191 prog="dash-generate-components",
192 formatter_class=_CombinedFormatter,
193 description="Generate dash components by extracting the metadata "
194 "using react-docgen. Then map the metadata to Python classes.",
195 )
196 parser.add_argument("components_source", help="React components source directory.")
197 parser.add_argument(
198 "project_shortname", help="Name of the project to export the classes files."
199 )
200 parser.add_argument(
201 "-p",
202 "--package-info-filename",
203 default="package.json",
204 help="The filename of the copied `package.json` to `project_shortname`",
205 )
206 parser.add_argument(
207 "-i",
208 "--ignore",
209 default="^_",
210 help="Files/directories matching the pattern will be ignored",
211 )
212 parser.add_argument(
213 "--r-prefix",
214 help="Specify a prefix for Dash for R component names, write "
215 "components to R dir, create R package.",
216 )
217 parser.add_argument(
218 "--r-depends",
219 default="",
220 help="Specify a comma-separated list of R packages to be "
221 "inserted into the Depends field of the DESCRIPTION file.",
222 )
223 parser.add_argument(
224 "--r-imports",
225 default="",
226 help="Specify a comma-separated list of R packages to be "
227 "inserted into the Imports field of the DESCRIPTION file.",
228 )
229 parser.add_argument(
230 "--r-suggests",
231 default="",
232 help="Specify a comma-separated list of R packages to be "
233 "inserted into the Suggests field of the DESCRIPTION file.",
234 )
235 parser.add_argument(
236 "--jl-prefix",
237 help="Specify a prefix for Dash for R component names, write "
238 "components to R dir, create R package.",
239 )
240 parser.add_argument(
241 "-k",
242 "--keep-prop-order",
243 default=None,
244 help="Specify a comma-separated list of components which will use the prop "
245 "order described in the component proptypes instead of alphabetically reordered "
246 "props. Pass the 'ALL' keyword to have every component retain "

Callers 1

cliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…