Skip to content

Commit 9b7ea45

Browse files
authored
chore: fix typo in detach flag name and help text (Mcrich23#53)
1 parent 484af1b commit 9b7ea45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Container-Compose/Commands/ComposeUp.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public struct ComposeUp: AsyncParsableCommand, @unchecked Sendable {
4343

4444
@Flag(
4545
name: [.customShort("d"), .customLong("detach")],
46-
help: "Detatches from container logs. Note: If you do NOT detatch, killing this process will NOT kill the container. To kill the container, run container-compose down")
47-
var detatch: Bool = false
46+
help: "Detaches from container logs. Note: If you do NOT detach, killing this process will NOT kill the container. To kill the container, run container-compose down")
47+
var detach: Bool = false
4848

4949
@Option(name: [.customShort("f"), .customLong("file")], help: "The path to your Docker Compose file")
5050
var composeFilename: String = "compose.yml"
@@ -169,7 +169,7 @@ public struct ComposeUp: AsyncParsableCommand, @unchecked Sendable {
169169
try await configService(service, serviceName: serviceName, from: dockerCompose)
170170
}
171171

172-
if !detatch {
172+
if !detach {
173173
await waitForever()
174174
}
175175
}
@@ -363,7 +363,7 @@ public struct ComposeUp: AsyncParsableCommand, @unchecked Sendable {
363363
}
364364

365365
// Add detach flag if specified on the CLI
366-
if detatch {
366+
if detach {
367367
runCommandArgs.append("-d")
368368
}
369369

0 commit comments

Comments
 (0)