MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / parse_args

Function parse_args

scripts/copyright-scan.py:100–108  ·  view source on GitHub ↗

Parse commandline arguments.

(parser)

Source from the content-addressed store, hash-verified

98# Routines
99
100def parse_args(parser):
101 """
102 Parse commandline arguments.
103 """
104 parser.add_argument('-d', '--dir', type=str, required=True, help='Root directory to start the scan')
105 parser.add_argument('-f','--force-update', action='store_true', help='Force the header writes for all files')
106 parser.add_argument('--dry-run', action='store_true', help='Just perform a dry-run')
107 parser.add_argument('--max-depth', type=int,default=100, help='Maximum depth to recurse while scanning files.')
108 return parser
109
110def update(filename, args):
111 """

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected