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
382 stars 57 forks source link

Case-insensitive command line flags #89

Open dechkovanen opened 1 year 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 5 months ago

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