Yubico / yubikey-personalization

YubiKey Personalization cross-platform library and tool
https://developers.yubico.com/yubikey-personalization/
BSD 2-Clause "Simplified" License
299 stars 82 forks source link

OS X Build doesn't allow "-S" by itself. #94

Closed gregprosser closed 7 years ago

gregprosser commented 7 years ago

I just downloaded the OS X build of ykpers from yubico.com, and I can't use "-S" without an option to set the scanmap back to the default.

Looking at man getopt, it looks like the :: syntax works differently on OS X than it does on GNU libc

It looks like the way around this is starting the optstring with ':' and then looking at optopt if the return from getopt is ':'. I don't know how portable this change would be.

klali commented 7 years ago

Thank you for this report, it should be fixed by 1a22604d3321bd34ebbc654d1615d1c5d09fc43a