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

Function parse_command_line

example/print_file/print_file_leaf_result.cpp:154–160  ·  view source on GitHub ↗

Parse the command line, return the file name.

Source from the content-addressed store, hash-verified

152
153// Parse the command line, return the file name.
154result<char const *> parse_command_line( int argc, char const * argv[] )
155{
156 if( argc == 2 )
157 return argv[1];
158 else
159 return leaf::new_error(bad_command_line);
160}
161
162
163// Open a file for reading.

Callers 1

mainFunction · 0.70

Calls 1

new_errorFunction · 0.85

Tested by

no test coverage detected