diff --git a/src/main.rs b/src/main.rs index 01d5e94..7297257 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,6 +112,7 @@ enum Commands { id: String, #[arg(short, long)] + /// Enables multithreading. This feature is not complete and can be unstable multithread: bool, }, /// Creates a backup @@ -120,6 +121,7 @@ enum Commands { dest: PathBuf, #[arg(short, long)] + /// Enables multithreading. This feature is not complete and can be unstable multithread: bool, }, /// Verifies that the tracked source files match destination files @@ -129,6 +131,8 @@ enum Commands { const SEPARATOR: char = '┇'; fn main() { + let args = Args::parse(); + let mut config_dir = dirs::config_dir().unwrap_or_else(|| { println!( "{} Couldn't get a config directory, using current directory.", @@ -141,8 +145,6 @@ fn main() { let mut config = Ini::load_from_file(config_dir.join("config.ini")).unwrap_or(Ini::new()); - let args = Args::parse(); - match args.command { Commands::List => list(config), Commands::SoftDelete { id } => soft_delete(config_dir, config, id),