51bool eatValues( Ctx & context, Container & container,
52 const String & errorDescription, Cmd * cmdLine )
54 if( !context.atEnd() )
56 auto begin = context.begin();
58 auto last = std::find_if( context.begin(), context.end(),
59 [ & ] (
const String & v ) ->
bool
61 return( cmdLine->findArgument( v ) != nullptr );
67 begin = context.next();
69 while( begin != last )
71 container.push_back( *begin );
73 begin = context.next();
76 if( last != context.end() )