<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 23, 2015 at 1:07 AM, Hans Hagen <span dir="ltr"><<a href="mailto:pragma@wxs.nl" target="_blank">pragma@wxs.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 5/22/2015 9:46 PM, Reinhard Kotucha wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On 2015-05-22 at 12:21:59 +0200, luigi scarso wrote:<br>
<br>
> A patch in trunk,<br>
> revision 5253.<br>
<br>
Hi Luigi,<br>
there is another issue regarding command line arguments. It's a minor<br>
issue but sometimes annoying. AFAIK Knuth's TeX had no optional<br>
arguments but some implementations added some. These implementations<br>
also issued a warning message<br>
<br>
[*]tex: unrecognized option '-foo'<br>
<br>
if they encounter an argument beginning with a minus sign which they<br>
are not aware of.<br>
<br>
This was acceptable in the past, at least for all the other engines<br>
though I must admit that it was sometimes annoying that I had to tell<br>
TeX that *my* options begin with '+' and had to invoke TeX by a<br>
wrapper script which replaces all '-' signs with '+' in advance.<br>
Well, I think that this behavior is acceptable because reading command<br>
line arguments from a TeX file is an ugly hack anyway and I'm probably<br>
the only one doing such nasty things.<br>
<br>
However, in LuaTeX it's desirable to suppress the warning message<br>
because the command line (arg) is accessible by Lua code inside the<br>
TeX file. Thus it should be possible to make use of it without beeing<br>
bothered or even confused by this message.<br>
</blockquote>
<br></span>
indeed<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I suppose that the warning message is not intended in LuaTeX because<br>
it had been removed already from former releases but came back in<br>
TL-2014, if I remember correctly. Maybe it comes from one of the<br>
Web2C/Kpathsea .ch files or so and just had been overlooked in recent<br>
releases.<br>
<br>
Luigi, could you look into it, please? Or discuss it with Taco, Hans,<br>
and Hartmut if you are unsure? IMO the message is confusing if<br>
additional arguments are processed with Lua code later.<br>
</blockquote>
<br></span>
indeed there should be no warning, i made a tracker<br>
<br></blockquote><div>Hm.</div><div><br></div><div><div>$ luatex --fmt=luatex-plain --foo "test.tex" </div><div>luatex: unrecognized option '--foo'</div><div>This is LuaTeX, Version beta-0.80.1 experimental </div><div> \write18 enabled.</div><div>(./test.tex</div></div><div>:</div><div>:</div><div><br></div><div><br></div><div><div>$ luatex --fmt=luatex-plain --lua=test.lua --foo "test.tex" </div><div>This is LuaTeX, Version beta-0.80.1 experimental </div><div> \write18 enabled.</div><div>(./test.tex</div><div>:</div></div><div>:</div></div><div>(test.lua is empty)</div><div><br></div><div>Perhaps we should explain this in the manual,</div><div>but in general I think it's not a good idea to suppress the message</div><div>"unrecognized option" .<br></div><div><br></div><div><br></div><div>-- <br></div><div class="gmail_signature">luigi<br></div>
</div></div>