The current command-line parsing relies on getting exceptions while run in CLI mode to decide what format and quality to use, but on Mac OS X, unless you run with -Djava.awt.headless=true, it will never NPE, so it always downloads SD quality MPEG. The attached patch changes the code to instead set a boolean to denote whether it's in command-line mode, and additionally converts to using Apache commons-cli for command-line parsing, to simplify the parsing.
Anonymous
CLI rework patch
thanks .. I'm testing it.