coolwanglu/pdf2htmlEX — pull request #77 by jahewson (2013-01-26 20:57:38+00:00)
Title: I gave parameters a makeover

I've improved the command line parameters:

- All 0/1 parameters are now flags, so we can write `--debug` instead of `--debug 1`. This was done using a C++11 lambda.

- All flags are now *off* by default, and setting them turns them on, so I've had to invert some of the names, e.g. `--squeeze-wide-glyphs 0` -> `--dont-squeeze-wide-glyphs`.

- Some parameters with confusing names have been re-named (unfair advantage: I'm English) and to keep them consistent with Poppler's *pdftocairo* and *pdftohtml*.

- The `ArgParser` now prints out the type instead of ``, using template magic.