katef / libfsm

DFA regular expression library & friends
BSD 2-Clause "Simplified" License
924 stars 52 forks source link

Unclear how to do multiple transformations in one invocation #477

Open pierreganty opened 1 month ago

pierreganty commented 1 month ago

Hi there,

In the fsm man page I read:

 -t name
           Apply a transformation. Multiple transformations may be given, and are applied in the order given. 

However, if I provide two transformations (as, for instance, -t trim minimise) it returns an error. Moreover, looking at https://github.com/katef/libfsm/blob/2483417ec80bf62f45ddd9d864405677917d06cd/src/fsm/main.c#L256 I do not see how it would support multiple transformations.

katef commented 1 month ago

Hi! I think you're correct. I think this was to allow multiple instances of -t <name>. But I agree, the code doesn't allow for that currently. That's a bug!