Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sources/BluetoothConnector/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down