RaitaroH / adl

🍿 anime scraper/downloader + trackma wrapper
GNU General Public License v3.0
135 stars 15 forks source link

clean arguments repetition with a function #18

Closed RaitaroH closed 4 years ago

RaitaroH commented 4 years ago

@Baitinq check this out...that is check a few argument combinations to break it... in my case I went with ./adl -s ' gegege 2018 ' -p ' vlc' -n ' 2' and is still fine. ./adl -s -p 'vlc' also fine.

Now that I have 4 repetitions there I decided to make a function instead.

Baitinq commented 4 years ago

Yeah, this is way cleaner.