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

Function parse_command_line

example/print_file/print_file_exceptions.cpp:150–156  ·  view source on GitHub ↗

Parse the command line, return the file name.

Source from the content-addressed store, hash-verified

148
149// Parse the command line, return the file name.
150char const * parse_command_line( int argc, char const * argv[] )
151{
152 if( argc == 2 )
153 return argv[1];
154 else
155 leaf::throw_exception(bad_command_line);
156}
157
158
159// Open a file for reading.

Callers 1

mainFunction · 0.70

Calls 1

throw_exceptionFunction · 0.70

Tested by

no test coverage detected