pombreda / rst2pdf

Automatically exported from code.google.com/p/rst2pdf
Other
0 stars 0 forks source link

Using --config option causes other command line arguments to be ignored #430

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

This is just one example:
1. rst2pdf --config=alternate.config -s serif -o output.pdf input.rst

What is the expected output? What do you see instead?

Assuming alternate.confi and input.rst exist, I expect that -s and -o options 
to be honored. Instead, the -s and -o are ignored.

Please answer the following questions, they are *very* important:

* Version of rst2pdf?

0.17.dev-r2442

* Version of reportlab?

NA

* Are you using wordaxe, and if true, what version?

NA

* Are you using rst2pdf with Sphinx, and if true, what version?

NA

Please provide any additional information below:

The 'svn diff' of an attempt for a fix is attached.

Original issue reported on code.google.com by char...@cstanhope.com on 29 Dec 2011 at 8:54

Attachments:

GoogleCodeExporter commented 9 years ago
I can confirm that this fix is correct. Before the patch, the return value of 
the first call to parse_args() is being used as the "args" parameter of the 
second call to parse_args(); this means the second run doesn't see any of the 
options.

Original comment by ty...@datastax.com on 25 Feb 2012 at 7:07

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2447.

Original comment by roberto.alsina on 4 Mar 2012 at 12:21

GoogleCodeExporter commented 9 years ago
Great! Thank you!

Original comment by char...@cstanhope.com on 5 Mar 2012 at 1:06