@@ -36,7 +36,7 @@ type execOpts struct {
3636 environment []string
3737 workingDir string
3838
39- tty bool
39+ noTty bool
4040 user string
4141 detach bool
4242 index int
@@ -68,7 +68,7 @@ func execCommand(p *projectOptions, backend compose.Service) *cobra.Command {
6868 runCmd .Flags ().IntVar (& opts .index , "index" , 1 , "index of the container if there are multiple instances of a service [default: 1]." )
6969 runCmd .Flags ().BoolVarP (& opts .privileged , "privileged" , "" , false , "Give extended privileges to the process." )
7070 runCmd .Flags ().StringVarP (& opts .user , "user" , "u" , "" , "Run the command as this user." )
71- runCmd .Flags ().BoolVarP (& opts .tty , "" , "T" , false , "Disable pseudo-tty allocation. By default `docker compose exec` allocates a TTY." )
71+ runCmd .Flags ().BoolVarP (& opts .noTty , "" , "T" , false , "Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY." )
7272 runCmd .Flags ().StringVarP (& opts .workingDir , "workdir" , "w" , "" , "Path to workdir directory for this command." )
7373
7474 runCmd .Flags ().SetInterspersed (false )
@@ -85,7 +85,7 @@ func runExec(ctx context.Context, backend compose.Service, opts execOpts) error
8585 Service : opts .service ,
8686 Command : opts .command ,
8787 Environment : opts .environment ,
88- Tty : ! opts .tty ,
88+ Tty : ! opts .noTty ,
8989 User : opts .user ,
9090 Privileged : opts .privileged ,
9191 Index : opts .index ,
0 commit comments