joshua-d-miller / macOSLAPS

Swift binary that will change a local administrator password to a random generated password. Similar behavior to LAPS for Windows
MIT License
387 stars 58 forks source link

Case-insensitive command line flags #89

Closed dechkovanen closed 3 weeks ago

dechkovanen commented 1 year ago

There seems to be a number of failures due to incorrect case in CL flags such as -getPassword around the Internet.

To mitigate these, macOSLAPS should accept flags regardless of the letter case. I don't see any particular reason why -getPassword, -GetPassword and -getpassword should qualify as three different flags.

joshua-d-miller commented 1 year ago

Currently testing this and will hopefully change this soon.

joshua-d-miller commented 9 months ago

This is currently available in the latest prerelease. Please give it a shot and let me know. Thanks!

joshua-d-miller commented 3 weeks ago

Closed at this has been implemented in 4.0.0 prerelease