cobaltpet / swl-tool

A ruby script for fetching, parsing, and displaying EiBi shortwave broadcast schedules
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Check if a command-line option has been repeated (which will not work as the user expects) #20

Closed cobaltpet closed 7 years ago

cobaltpet commented 7 years ago

If the user repeats a command-line option, such as -b BBC -b Cuba, this will not match both broadcasters. The likely although not guaranteed behavior is that only the last broadcaster will be matched. Consider checking for this condition and logging an error if found.

cobaltpet commented 7 years ago

In particular, -b -f -l -m -r -t

cobaltpet commented 7 years ago

Fix committed