diff --git a/Sources/BluetoothConnector/main.swift b/Sources/BluetoothConnector/main.swift index 946e908..df3e81e 100644 --- a/Sources/BluetoothConnector/main.swift +++ b/Sources/BluetoothConnector/main.swift @@ -118,16 +118,16 @@ func execute(macAddress: String, connectOnly: Bool, disconnectOnly: Bool, notify struct BluetoothConnector: ParsableCommand { @Flag(name: .shortAndLong, help: "Connect a device") - var connect: Bool + var connect: Bool = false @Flag(name: .shortAndLong, help: "Disconnect a device") - var disconnect: Bool + var disconnect: Bool = false @Flag(name: .shortAndLong, help: "Get the status of a device") - var status: Bool + var status: Bool = false @Flag(name: .shortAndLong, help: "Post a Notification Center notification") - var notify: Bool + var notify: Bool = false @Argument(help: ArgumentHelp( "The MAC address of the device. Format: 00-00-00-00-00-00 or 000000000000",