Home | History | Annotate | Download | only in cmdline

Lines Matching refs:Builder

47   struct Builder;  // Build the parser.
53 static ArgumentBuilder<TArg> CreateArgumentBuilder(Builder& parent);
54 static void AppendCompletedArgument(Builder& builder, detail::CmdlineParseArgumentAny* arg);
116 // Builder for the argument definition of type TArg. Do not use this type directly,
173 CmdlineParser::Builder& IntoKey(const MapKey& key) {
198 // Ensure we always move this when returning a new builder.
202 // Used by builder to internally ignore arguments by dropping them on the floor after parsing.
203 CmdlineParser::Builder& IntoIgnore() {
238 // Called by any function that doesn't chain back into this builder.
239 // Completes the argument builder and save the information into the main builder.
258 friend struct CmdlineParser::Builder;
261 ArgumentBuilder(CmdlineParser::Builder& parser,
277 CmdlineParser::Builder& parent_;
311 Builder& IntoKey(const TVariantMapKey<Unit>& key) {
315 // Ensure we always move this when returning a new builder.
352 friend struct Builder;
354 explicit UntypedArgumentBuilder(CmdlineParser::Builder& parent) : parent_(parent) {}
357 CmdlineParser::Builder& parent_;
362 struct Builder {
363 Builder() : save_destination_(new SaveDestination()) {}
378 Builder& IgnoreUnrecognized(bool ignore_unrecognized) {
384 Builder& Ignore(std::initializer_list<const char*> ignore_list) {
395 auto&& builder = Define(ignore_name).template WithType<std::string>().IntoIgnore();
396 assert(&builder == this);
397 (void)builder; // Ignore pointless unused warning, it's used in the assert.
400 auto&& builder = Define(ignore_name).template WithType<Unit>().IntoIgnore();
401 assert(&builder == this);
402 (void)builder; // Ignore pointless unused warning, it's used in the assert.
431 Builder(const Builder& other) = delete;
497 friend struct Builder;
499 // Construct a new parser from the builder. Move all the arguments.
617 CmdlineParser<TVariantMap, TVariantMapKey>::Builder& parent) {
626 CmdlineParser<TVariantMap, TVariantMapKey>::Builder& builder,
628 builder.AppendCompletedArgument(arg);