HomeFreeBSD

bluetooth-config: Fix command line parsing

Description

bluetooth-config: Fix command line parsing

This addresses the problems encountered when parsing options in bluetooth-config.

  • the optional parameters were not properly shifted after consumption
  • the command line parameter count was checked before getopts and not after

Reported by: sjg
Approved by: kp
MFC after: 7 days
Event: Berlin Hackathon 202507
Differential Revision: https://reviews.freebsd.org/D51281

Details

Provenance
erdgeist_erdgeist.orgAuthored on Jul 13 2025, 9:25 AM
lmeCommitted on Jul 13 2025, 9:25 AM
Parents
rG76856ead444d: netstat.1: Add common example to list listening sockets
Branches
Unknown
Tags
Unknown