Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main.swift #21

Merged
merged 1 commit into from
Dec 26, 2021
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