jmakhack / myanimelist-cli

Minimalistic command line interface for fetching user anime data from MyAnimeList.
https://aur.archlinux.org/packages/mya-git
MIT License
11 stars 15 forks source link

Add username length validation #17

Closed jmakhack closed 3 years ago

jmakhack commented 3 years ago

Associated Issue

Closes #5

Implemented Solution

Added a validation check on the first arg to be between 2 and 16 characters in length by using the strlen function.

If the validation fails, the program prints out the following message Username must be between 2 and 16 characters in length and then immediately exits.