catchorg / Clara

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

handle positional args after `--` #19

Open wojdyr opened 7 years ago

wojdyr commented 7 years ago

It looks that Clara just stops parsing when encountering --.

        void parseIntoTokens( std::vector<std::string> const& args, std::vector<Token>& tokens ) {
            const std::string doubleDash = "--";
            for( std::size_t i = 1; i < args.size() && args[i] != doubleDash; ++i )
                parseIntoTokens( args[i], tokens);
        }

I guess the intended behavior (example: grep -- -b file) is not implemented yet?