diff --git a/src/client_config.rs b/src/client_config.rs index 85bb7aa..cf7aebd 100644 --- a/src/client_config.rs +++ b/src/client_config.rs @@ -119,7 +119,7 @@ impl ClientConfig { "-d" | "--download" => { config.mode = Mode::Download; } - "--dont-clean" => { + "--keep-on-error" => { config.clean_on_error = false; } "-h" | "--help" => { @@ -136,7 +136,7 @@ impl ClientConfig { println!(" -u, --upload\t\t\t\tSets the client to upload mode, Ignores all previous download flags"); println!(" -d, --download\t\t\tSet the client to download mode, Invalidates all previous upload flags"); println!(" -rd, --receive-directory \tSet the directory to receive files when in Download mode (default: current working directory)"); - println!(" --dont-clean\t\t\t\tPrevent client from deleting files after receiving errors"); + println!(" --keep-on-error\t\t\t\tPrevent client from deleting files after receiving errors"); println!(" -h, --help\t\t\t\tPrint help information"); process::exit(0); } diff --git a/src/config.rs b/src/config.rs index a600534..4cb0614 100644 --- a/src/config.rs +++ b/src/config.rs @@ -134,7 +134,7 @@ impl Config { println!(" -r, --read-only\t\t\tRefuse all write requests, making the server read-only (default: false)"); println!(" --duplicate-packets \t\tDuplicate all packets sent from the server (default: 0)"); println!(" --overwrite\t\t\t\tOverwrite existing files (default: false)"); - println!(" --dont-clean\t\t\t\tPrevent daemon from deleting files after receiving errors"); + println!(" --keep-on-error\t\t\t\tPrevent daemon from deleting files after receiving errors"); println!(" -h, --help\t\t\t\tPrint help information"); process::exit(0); } @@ -157,7 +157,7 @@ impl Config { "--overwrite" => { config.overwrite = true; } - "--dont-clean" => { + "--keep-on-error" => { config.clean_on_error = false; }