From 30c1ffcecb541d9b27982df6af26948514cbadaa Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Sun, 15 Jan 2023 16:58:45 +0100 Subject: started implementation of new input system --- src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/main.rs') 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 @@ +use std::env; + use modlist::{config::Cfg, input::get_input}; #[tokio::main] async fn main() { let config = Cfg::init("modlist.toml").unwrap(); - match get_input(config).await { + let mut args: Vec = env::args().collect(); + args.reverse(); + args.pop(); + args.reverse(); + + match get_input(config, args).await { Ok(..) => (), Err(e) => { println!("{}", e); -- cgit v1.2.3