MCPcopy Create free account
hub / github.com/boostorg/leaf / parse_command_line

Function parse_command_line

example/print_file/print_file_system_result.cpp:162–168  ·  view source on GitHub ↗

Parse the command line, return the file name.

Source from the content-addressed store, hash-verified

160
161// Parse the command line, return the file name.
162result<char const *> parse_command_line( int argc, char const * argv[] )
163{
164 if( argc == 2 )
165 return argv[1];
166 else
167 return leaf::new_error(bad_command_line);
168}
169
170
171// Open a file for reading.

Callers 1

mainFunction · 0.70

Calls 1

new_errorFunction · 0.85

Tested by

no test coverage detected