diff --git a/src/config.rs b/src/config.rs index 6061690..0d05eaa 100644 --- a/src/config.rs +++ b/src/config.rs @@ -33,7 +33,7 @@ pub struct Config { impl Config { pub fn build(args: &[String]) -> Result { - let filename = match args.get(2) { + let filename = match args.get(1) { Some(f) => f, None => "config.toml", };