Parse the command line, return the file name.
| 160 | |
| 161 | // Parse the command line, return the file name. |
| 162 | result<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. |