refactor
This commit is contained in:
parent
39342bf5c1
commit
f6eb19d085
@ -134,7 +134,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
} else if args[0] == "--import-config" {
|
} else if args[0] == "--import-config" {
|
||||||
if args.len() == 2 {
|
if args.len() == 2 {
|
||||||
let mut filepath = args[1].to_owned();
|
let filepath;
|
||||||
let path = std::path::Path::new(&args[1]);
|
let path = std::path::Path::new(&args[1]);
|
||||||
if !path.is_absolute() {
|
if !path.is_absolute() {
|
||||||
let mut cur = std::env::current_dir().unwrap();
|
let mut cur = std::env::current_dir().unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user