emericg / OpenSubtitlesDownload

Automatically find and download the right subtitles for your favorite videos!
https://emeric.io/OpenSubtitlesDownload
GNU General Public License v3.0
581 stars 63 forks source link

suggsetion: Add the search_overwite option to the ArgumentParser #41

Closed YuvalDahn closed 5 years ago

YuvalDahn commented 5 years ago

I want to add the option to add an argument to set opt_search_overwrite to off using an argument in the argument parser.

if you'd like I can make a pull request to add this simple change

emericg commented 5 years ago

Yes you can go forward with this. How would you name the option? I was going to do it tomorrow anyway following discussion on https://github.com/emericg/OpenSubtitlesDownload/pull/40

emericg commented 5 years ago

Allright I commited this and named the option -i or --skip. Let me know if that's allright for you.

YuvalDahn commented 5 years ago

That's great, Thanks, sorry I didn't got up to writing it myself. Just a question, what does the -i stands for?

emericg commented 5 years ago

It's for 'ignore' ^^ The '-s' is already squatted by '--search'. I had a hard time finding something that made sense for that option... In the code, the corresponding setting is named overwrite and is 'on' by default. But using CLI with '--overwrite off' would have been an unnecessary hassle, and '-o' wouldn't have made much more sense anyway. I liked '--once' but it isn't self-explanatory either...