Currently, cl::ConsumeAfter only works for the case that has exactly one
positional argument. Without the fix, it skip fulfilling first positional
argument and put that additional positional argument in interpreter arguments.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
ConsumeAfter is used in three places: lli, KillTheDoctor, and modularize, so I wouldn't be surprised if there was an off-by-one error here.
Starting the index here at 1 dates back to the original CommandLine 2.0 check in (rG5df56c47fc5c), so I'm hesitant to say this is correct, but your unit tests and the lit suite for lli give me confidence that it does. Looks good to me, I guess.