Lines Matching refs:func
56 auto func = [value, flags](const StringPiece& arg) -> bool { in AddRequiredFlag() local
61 flags_.emplace_back(Flag(name, description, /* required */ true, /* num_args */ 1, func)); in AddRequiredFlag()
66 auto func = [value, flags](const StringPiece& arg) -> bool { in AddRequiredFlagList() local
71 flags_.emplace_back(Flag(name, description, /* required */ true, /* num_args */ 1, func)); in AddRequiredFlagList()
76 auto func = [value, flags](const StringPiece& arg) -> bool { in AddOptionalFlag() local
81 flags_.emplace_back(Flag(name, description, /* required */ false, /* num_args */ 1, func)); in AddOptionalFlag()
86 auto func = [value, flags](const StringPiece& arg) -> bool { in AddOptionalFlagList() local
91 flags_.emplace_back(Flag(name, description, /* required */ false, /* num_args */ 1, func)); in AddOptionalFlagList()
96 auto func = [value](const StringPiece& arg) -> bool { in AddOptionalFlagList() local
101 flags_.emplace_back(Flag(name, description, /* required */ false, /* num_args */ 1, func)); in AddOptionalFlagList()
106 auto func = [value](const StringPiece& arg) -> bool { in AddOptionalSwitch() local
111 flags_.emplace_back(Flag(name, description, /* required */ false, /* num_args */ 0, func)); in AddOptionalSwitch()