cspeterson / splatmoji

Quickly look up and input emoji and/or emoticons/kaomoji on your GNU/Linux desktop via pop-up menu.
MIT License
212 stars 19 forks source link

splatmoji: simplify invalid/valid choices #10

Closed lasers closed 5 years ago

lasers commented 6 years ago

Hi. I noticed we can simplify checking invalid/valid choices better by moving copy, type up to the top and putting everything under else (e.g., -h, --help, and no argument). This will remove some lines and will skip some things for invalid choices. Hopefully this is a small, but welcome optimization. 😩

cspeterson commented 5 years ago

|ʘ‿ʘ)╯ Busy, kept snoozing this... but a good change, and finally confirmed!