tokland / youtube-upload

Upload videos to Youtube from the command line
2.08k stars 465 forks source link

Build the OptParser in its own method #330

Open patcon opened 3 years ago

patcon commented 3 years ago

Thanks! Really appreciate this tool. I'm looking to use this code programmatically in my own code (as I wanted to catch the returned video_id), and was having to rebuild the default options object. Being able to rebuild it outside run_main would be helpful! Thanks for considering! (This is just a copy-paste job into a new build_parser method :)