Lines Matching defs:args
51 Args:
56 def expand_vars(self, args):
57 """Perform place holder expansion on all of |args|.
59 Args:
60 args: The args to perform expansion on.
63 The updated |args| list.
69 for arg in args:
133 def __init__(self, name, args, tool_paths):
136 Args:
138 args: The override commandline arguments for the hook.
142 self._args = args
146 def expand_vars(args, diff=()):
147 """Perform place holder expansion on all of |args|."""
149 return replacer.expand_vars(args)
151 def args(self, default_args=(), diff=()):
154 Args:
161 args = self._args
162 if not args:
163 args = default_args
165 return self.expand_vars(args, diff=diff)
174 Args:
200 Args:
216 Args:
285 return _check_cmd(options.name, project, commit, options.args((), diff),
293 options.args(('--ignore=GERRIT_CHANGE_ID',), diff))
305 options.args(('--style', 'file', '--commit', commit), diff))
320 '--commit', commit] + options.args()
333 if options.args():
357 if options.args():
411 if options.args():
437 cmd = [cpplint] + options.args(('${PREUPLOAD_FILES}',), filtered)
448 cmd = [gofmt, '-l'] + options.args((), filtered)
462 if options.args():
491 ] + options.args(('${PREUPLOAD_FILES}',), filtered)
534 cmd = ['xmllint'] + options.args(('${PREUPLOAD_FILES}',), filtered)