Skip to content

Commit

Permalink
Added comment for multithread option
Browse files Browse the repository at this point in the history
  • Loading branch information
obvMellow committed Aug 3, 2024
1 parent 2a5ad8c commit 5e6f955
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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.",
Expand All @@ -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),
Expand Down

0 comments on commit 5e6f955

Please sign in to comment.