Lines Matching refs:args
51 config func(ctx build.Context, args ...string) build.Config
57 run func(ctx build.Context, config build.Config, args []string, logsDir string)
67 config: func(ctx build.Context, args ...string) build.Config {
68 return build.NewConfig(ctx, args...)
122 c, args := getCommand(os.Args)
163 config := c.config(buildCtx, args...)
216 c.run(buildCtx, config, args, logsDir)
233 func dumpVar(ctx build.Context, config build.Config, args []string, _ string) {
246 flags.Parse(args)
283 func dumpVars(ctx build.Context, config build.Config, args []string, _ string) {
304 flags.Parse(args)
360 func dumpVarConfig(ctx build.Context, args ...string) build.Config {
364 func buildActionConfig(ctx build.Context, args ...string) build.Config {
416 if len(args) < numBuildActionFlags {
420 flags.Parse(args[0:numBuildActionFlags])
440 args = args[numBuildActionFlags:]
441 return build.NewBuildActionConfig(buildAction, *dir, ctx, args...)
481 func getCommand(args []string) (*command, []string) {
482 if len(args) < 2 {
483 return nil, args
487 if c.flag == args[1] {
488 return &c, args[2:]
496 if inList(makeModeFlagName, args) {
497 return &c, args[1:]
503 return nil, args