diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 59d41c5..39e46e8 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -1,10 +1,17 @@ | |||
1 | use std::env; | ||
2 | |||
1 | use modlist::{config::Cfg, input::get_input}; | 3 | use modlist::{config::Cfg, input::get_input}; |
2 | 4 | ||
3 | #[tokio::main] | 5 | #[tokio::main] |
4 | async fn main() { | 6 | async fn main() { |
5 | let config = Cfg::init("modlist.toml").unwrap(); | 7 | let config = Cfg::init("modlist.toml").unwrap(); |
6 | 8 | ||
7 | match get_input(config).await { | 9 | let mut args: Vec<String> = env::args().collect(); |
10 | args.reverse(); | ||
11 | args.pop(); | ||
12 | args.reverse(); | ||
13 | |||
14 | match get_input(config, args).await { | ||
8 | Ok(..) => (), | 15 | Ok(..) => (), |
9 | Err(e) => { | 16 | Err(e) => { |
10 | println!("{}", e); | 17 | println!("{}", e); |