MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / command_line

Method command_line

src/libutil/argparse.cpp:540–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538
539
540std::string
541ArgParse::command_line () const
542{
543 std::string s;
544 for (int i = 0; i < m_argc; ++i) {
545 if (strchr (m_argv[i], ' ')) {
546 s += '\"';
547 s += m_argv[i];
548 s += '\"';
549 } else {
550 s += m_argv[i];
551 }
552 if (i < m_argc-1)
553 s += ' ';
554 }
555 return s;
556}
557
558
559

Callers 2

getargsFunction · 0.80
getargsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected