mirror of
https://github.com/docker/compose.git
synced 2026-08-31 06:49:15 +00:00
Merge pull request #228 from docker/compose_project_name
Changed compose flag —name to —project-name, -p, aligned with docker-compose flag.
This commit is contained in:
commit
4232b66a6b
3 changed files with 4 additions and 4 deletions
|
|
@ -45,7 +45,7 @@ func downCommand() *cobra.Command {
|
|||
return runDown(cmd.Context(), opts)
|
||||
},
|
||||
}
|
||||
downCmd.Flags().StringVar(&opts.Name, "name", "", "Project name")
|
||||
downCmd.Flags().StringVarP(&opts.Name, "project-name", "p", "", "Project name")
|
||||
downCmd.Flags().StringVar(&opts.WorkDir, "workdir", ".", "Work dir")
|
||||
downCmd.Flags().StringArrayVarP(&opts.ConfigPaths, "file", "f", []string{}, "Compose configuration files")
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func upCommand() *cobra.Command {
|
|||
return runUp(cmd.Context(), opts)
|
||||
},
|
||||
}
|
||||
upCmd.Flags().StringVar(&opts.Name, "name", "", "Project name")
|
||||
upCmd.Flags().StringVarP(&opts.Name, "project-name", "p", "", "Project name")
|
||||
upCmd.Flags().StringVar(&opts.WorkDir, "workdir", ".", "Work dir")
|
||||
upCmd.Flags().StringArrayVarP(&opts.ConfigPaths, "file", "f", []string{}, "Compose configuration files")
|
||||
upCmd.Flags().StringArrayVarP(&opts.Environment, "environment", "e", []string{}, "Environment variables")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue