| 256 | } |
| 257 | |
| 258 | string default_file() { |
| 259 | std::string name; |
| 260 | std::ifstream f; |
| 261 | bool good = config_file(f, name); |
| 262 | f.close(); |
| 263 | if (good || name!=ETC_FILE_NAME) { |
| 264 | return name; |
| 265 | } |
| 266 | throw err("no default configuration, last tried: " + name); |
| 267 | } |
| 268 | |
| 269 | string parse_default(connection_options& opts) { |
| 270 | std::string name; |