GNUAspell / aspell

http://aspell.net
GNU Lesser General Public License v2.1
243 stars 53 forks source link

Command line option --lang doesn't parse the complete string #616

Closed david-vicente closed 3 years ago

david-vicente commented 3 years ago

If I run

aspell -a --lang=pt_PT-preao

Aspell ignores the -preao suffix of the dictionary and runs as if --lang=pt_PT was passed instead. If the pt_PT dictionary is not available it gives the error

Error: No word lists can be found for the language "pt_PT".

proving that -preao was ignored.

I also tried with en_US-variant_0 and en_US-variant_1 and the result is the same. Everything starting at - is ignored. This doesn't happen with --master option, however tools like Emacs and Enchant rely on the --lang option, so I think that this is relevant.

david-vicente commented 3 years ago

Never mind. Just read the man page and I now see why --lang is different form --master.