This is a two-fold patch.
I've often found myself starting to write a file and
realizing I forgot to create it with gpl first. I
tried to run gpl without a filename argument to print
it to stdout (and read that into the file buffer), and
found that that syntax wasn't supported, so I wrote a
patch for that. All I do is check to see if the
filename argument is an empty string and, if so, run
the appropriate function without a redirect.
In the process of testing my changes, I noticed that
the help output says the option "-python" prints out
the GPL in a commented python format, but the actual
case structure at the end of the script expects "-py",
so I updated the help message to reflect that.
Hope you find this patch useful. It is patched against
CVS as of 2006/7/10 at about 2200 EDT.
Patch to allow for printing to stdout