Commit Graph

6 Commits

Author SHA1 Message Date
Bryan Bishop 59a71a7cd3 use io.StringIO when py3k 2013-07-19 21:25:42 -05:00
Cathal Garvey db514ff744 Fixed a few bugs so reading from stdin now works. Involves a potentially costly recast of file contents as StringIO. 2013-03-21 23:49:03 +00:00
Cathal Garvey 95e92420c9 Modified the "pdfparanoia" script in bin/ so it uses Argparse and the "with" context statement.
As python 2.6 was already commented as a potential environment, there seemed little
reason to not use Argparse rather than a sys.argv popping system; argparse offers
automatically generated usage documentation and can offer useful errors when input
is incorrect.

The "with" context statement is also highly excellent and should be used wherever
legacy support for old-timers using 2.6 is not needed.
2013-03-21 23:37:34 +00:00
Zooko O'Whielacronx 503b8aead5 add -v -v mode which prints out the details (potentially sensitive, potentially bulky)
remove spie, which appears to do nothing
2013-02-13 21:08:49 +00:00
Zooko O'Whielacronx 56cc7719da add a "--verbose" option that writes to stderr if it finds anything to omit
Also cleaned up some flakes noticed by pyflakes, and make the scrub() be @classmethod instead of @staticmethod so I could use the class for the verbose output.

caveats:

* there are no unit tests of this patch
* now your logs of your stderr have potentially sensitive information in them
* the implementation of arg parsing is very low-tech; (a *good* way to do arg parsing is the "argparse" module)
2013-02-13 19:58:47 +00:00
Bryan Bishop 775b927b42 pdfparanoia command-line interface 2013-02-09 09:44:48 -06:00