fix filename reading from cli argument
This commit is contained in:
parent
b811b63bd3
commit
271d5d8c6c
@ -33,7 +33,7 @@ pub struct Config {
|
|||||||
|
|
||||||
impl Config {
|
impl Config {
|
||||||
pub fn build(args: &[String]) -> Result<Config> {
|
pub fn build(args: &[String]) -> Result<Config> {
|
||||||
let filename = match args.get(2) {
|
let filename = match args.get(1) {
|
||||||
Some(f) => f,
|
Some(f) => f,
|
||||||
None => "config.toml",
|
None => "config.toml",
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user