MCPcopy Create free account
hub / github.com/docopt/docopt.cpp / is_argument_spec

Function is_argument_spec

docopt.cpp:190–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190static bool is_argument_spec(std::string const& token) {
191 if (token.empty())
192 return false;
193
194 if (token[0]=='<' && token[token.size()-1]=='>')
195 return true;
196
197 if (std::all_of(token.begin(), token.end(), &::isupper))
198 return true;
199
200 return false;
201}
202
203template <typename I>
204std::vector<std::string> longOptions(I iter, I end) {

Callers 1

parse_atomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected