MCPcopy Create free account
hub / github.com/docker/compose / normalizeRunFlags

Function normalizeRunFlags

cmd/compose/run.go:260–270  ·  view source on GitHub ↗
(f *pflag.FlagSet, name string)

Source from the content-addressed store, hash-verified

258}
259
260func normalizeRunFlags(f *pflag.FlagSet, name string) pflag.NormalizedName {
261 switch name {
262 case "volumes":
263 name = "volume"
264 case "labels":
265 name = "label"
266 case "no-TTY":
267 name = "no-tty"
268 }
269 return pflag.NormalizedName(name)
270}
271
272func runRun(ctx context.Context, backend api.Compose, project *types.Project, options runOptions, createOpts createOptions, buildOpts buildOptions, dockerCli command.Cli) error {
273 project, err := options.apply(project)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected