-
Couldn't load subscription status.
- Fork 67
Open
Description
I've bumped into some weird behaviour in another project whereas the use of an optflagopt option seemed to render unexpected behaviour of the option not being properly parsed.
I decided to come to the source and I extended the mod.rs test to show that something was amiss
pecastro@de5e4db
I've managed to make the test panic when you use an optflagopt in combination with other options.
Initial investigations from debugging the test show that the vals Vec of the Matches struct will have a Vec with Given rather than the option value specified and that is what's causing the return of None and triggering the panic.
self.vals:
[[(0, Val("foo"))], [(1, Val("bar"))], [], [(2, Given)]]
Metadata
Metadata
Assignees
Labels
No labels