only load conf if phetchdir exists

pull/14/head
chris west 4 years ago
parent 9702633354
commit 37170c4ee2

@ -84,7 +84,7 @@ pub fn parse<T: AsRef<str>>(args: &[T]) -> Result<Config, ArgError> {
}
// load phetch.conf from disk if they didn't pass -c or -C
if !set_cfg && !set_nocfg {
if !set_cfg && !set_nocfg && config::exists() {
match config::load() {
Err(e) => return Err(ArgError::new(e)),
Ok(c) => cfg = c,

Loading…
Cancel
Save