It works more or less as expected, but suffers from a fatal problem: running it with an unknown option or any arguments without using --args option simply hangs the program. I didn't have time to really debug this yet, but I see that it gets stuck in the do/while loop in lyra::arguments::parse_sequence and I don't really understand how is this supposed to work, i.e. why is p_result.value().have_tokens() always remains true.
I've been testing the proposed snippet from #51 showing how to have options with multiple arguments and so compiled and ran this simple example:
It works more or less as expected, but suffers from a fatal problem: running it with an unknown option or any arguments without using
--args
option simply hangs the program. I didn't have time to really debug this yet, but I see that it gets stuck in thedo/while
loop inlyra::arguments::parse_sequence
and I don't really understand how is this supposed to work, i.e. why isp_result.value().have_tokens()
always remains true.