haimgel / display-switch

Turn a $30 USB switch into a full-featured multi-monitor KVM switch
https://haim.dev/posts/2020-07-28-dual-monitor-kvm/
MIT License
2.85k stars 112 forks source link

Change binary name from display_switch to display-switch #37

Closed svend closed 3 years ago

svend commented 3 years ago

Change crate name to display-swtich. This changes the binary name from display_switch to display-switch.

svend commented 3 years ago

Thanks for writing this tool! Dashes seem to be more common in binary names than underscores. I'm not sure if there is a way to change the binary name without changing the crate name.

haimgel commented 3 years ago

Thank you. This makes some sense, although on my MacBook the things are not very clear-cut:

[haim@halmos ~]$ ls /usr/bin/ | grep - | wc -l
      67
[haim@halmos ~]$ ls /usr/bin/ | grep _ | wc -l
      40

Dashes are indeed more frequent, and I wish I've used dash initially, but given that everyone upgrading should now change it, I'm not sure it's worth the pain. I'll also need to do a major version bump since this is a breaking change.

svend commented 3 years ago

Yes, probably not worth breaking users' scripts which reference the binary name. Thanks for the thoughtful reply.