apertium / lttoolbox

Finite state compiler, processor and helper tools used by apertium
http://wiki.apertium.org/wiki/Lttoolbox
GNU General Public License v2.0
18 stars 22 forks source link

lt-comp --var-left #51

Closed hectoralos closed 5 years ago

hectoralos commented 5 years ago

"lt-comp --var-left" is used in several Makefile, but it does not appear if I type lt-comp --help

unhammer commented 5 years ago

(Seems like --help only shows the short options, man lt-comp fortunately shows the long ones as well)

hectoralos commented 5 years ago

So, -l and --var-left should be synonyms. It's very strange, but seemingly they are not. I had problems with -l and the problem was solved using --var-left: https://github.com/apertium/apertium-por-cat/commit/ef71b940b3ee85d158a9cb57a8cdc846aaa4675e

AMR-KELEG commented 5 years ago

Hi @hectoralos I have tested the lt-comp script and actually yes -l and --var-left are synonyms.

The problem is that short and long options are set in different ways. So, if you wanted to use -l for the following command: lt-comp --var-left=br rl $< $@ You would write it as follows: lt-comp -l br rl $< $@

If an equal sign is added after the -l (lt-comp -l=br rl $< $@) then the value that the compiler will parse from the command options is =br and not br.