catchorg / Clara

A simple to use, composable, command line parser for C++ 11 and beyond
Boost Software License 1.0
648 stars 67 forks source link

Support arguments starting with a dash #59

Open aivarsk opened 6 years ago

aivarsk commented 6 years ago

I don't know how good this fits into TokenStream concept but the idea is if we know an argument will follow then advance stream and accept whatever follows without trying to parse it. That might be an argument separated by ' :=' (previously parsed) or an empty string (I've seen this quite often) or arbitrary data.

This is how I fixed issue #50 for me.