Menu

#5 patch: fix command-line parsing

pending
nobody
None
5
2012-10-07
2012-04-16
No

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.

Discussion

  • Benjamin Reed

    Benjamin Reed - 2012-04-16

    CLI rework patch

     
  • StefanKaerst

    StefanKaerst - 2012-07-13

    thanks .. I'm testing it.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.