Instinctlol / automatic-twitch-recorder

Checks if a user on twitch is currently streaming and then records the stream via streamlink
187 stars 40 forks source link

Change how arguments are parsed. #6

Closed maxb2 closed 6 years ago

maxb2 commented 6 years ago

Getopts is used to parse the arguments instead of sys.argv. It offers an easier way to set values without the use of multiple positional arguments. It can also make adding new features easier (just add another flag) without breaking previous implementations of the script. Exceptions and error handling is also added.