#52 aafigure: Allow stdin input interpretation and stdout output

closed-accepted
Chris Liechti
None
5
2009-05-22
2009-05-20
No

This patch changes the command-line interface to work in a one-file oriented way, to allow to process input via stdin and to write output to
stdout. This allows piping in a more *nix way.

A new command-line option is added to specify the name of the output file (-o/--output). When omitted, the output is written to stdout. Same goes to the input file, if none is specified, the input is taken from stdin.

As a trade-off, multiple file processing is not supported anymore. This shouldn't be bad, as you can always use your favorite shell's looping
capabilities to generate a bunch of files with one command.

The patch is made using git (svn), but should be easily applicable using patch -p1. The patch is against the "global" aafigure repo[1], not the "cliechti" repo[2] because it seems like the "global" one was the lastest to receive some commits so I guess that's the most updated one. If that's wrong I can rebase the patch for the other repo.

[1] http://svn.berlios.de/svnroot/repos/docutils/trunk/sandbox/aafigure/
[2] http://svn.berlios.de/svnroot/repos/docutils/trunk/sandbox/cliechti/aafigure/

Discussion

  • Allow stdin input interpretation and stdout output generation

     
    Attachments
  • Chris Liechti
    Chris Liechti
    2009-05-22

    • assigned_to: nobody --> cliechti
    • status: open --> closed-accepted