MCPcopy
hub / github.com/django/django / add_common_arguments

Function add_common_arguments

scripts/manage_translations.py:339–362  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

337
338
339def add_common_arguments(parser):
340 parser.add_argument(
341 "-r",
342 "--resources",
343 action="append",
344 help="limit operation to the specified resources",
345 )
346 parser.add_argument(
347 "-l",
348 "--languages",
349 action="append",
350 help="limit operation to the specified languages",
351 )
352 parser.add_argument(
353 "-v",
354 "--verbosity",
355 default=1,
356 type=int,
357 choices=[0, 1, 2, 3],
358 help=(
359 "Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, "
360 "3=very verbose output"
361 ),
362 )
363
364
365if __name__ == "__main__":

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected