Parse the command line, return the file name.
| 152 | |
| 153 | // Parse the command line, return the file name. |
| 154 | result<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. |