Update yabridgectl documentation

This commit is contained in:
Robbert van der Helm
2020-07-17 13:34:55 +02:00
parent b94e68e935
commit 74be0992fd
5 changed files with 42 additions and 38 deletions
+4 -4
View File
@@ -47,7 +47,7 @@ pub fn remove_directory(config: &mut Config, path: &Path) -> Result<()> {
let orphan_files = files::index_so_files(path);
if !orphan_files.is_empty() {
println!(
"Warning: Found {} leftover '.so' files still in this directory:",
"Warning: Found {} leftover .so files still in this directory:",
orphan_files.len()
);
@@ -221,10 +221,10 @@ pub fn do_sync(config: &Config, prune: bool, verbose: bool) -> Result<()> {
// tries to load them
if !orphan_so_files.is_empty() {
if prune {
println!("Removing {} leftover '.so' files:", orphan_so_files.len());
println!("Removing {} leftover .so files:", orphan_so_files.len());
} else {
println!(
"Found {} leftover '.so' files, rerun with the '--prune' option to remove them:",
"Found {} leftover .so files, rerun with the '--prune' option to remove them:",
orphan_so_files.len()
);
}
@@ -243,7 +243,7 @@ pub fn do_sync(config: &Config, prune: bool, verbose: bool) -> Result<()> {
}
println!(
"Finished setting up {} plugins using {}, skipped {} non-plugin '.dll' files",
"Finished setting up {} plugins using {}, skipped {} non-plugin .dll files",
num_installed,
config.method.plural_name(),
num_skipped_files
+1 -1
View File
@@ -164,7 +164,7 @@ fn find_files(directory: &Path) -> (Vec<PathBuf>, Vec<FoundFile>) {
.follow_links(true)
.into_iter()
.filter_map(|e| e.ok())
.filter(|x| !x.file_type().is_dir())
.filter(|e| !e.file_type().is_dir())
.enumerate()
{
// This is a bit of an odd warning, but I can see it happening that someone adds their
+1 -3
View File
@@ -26,8 +26,6 @@ mod config;
mod files;
mod utils;
// TODO: Reward parts of the readme
fn main() -> Result<()> {
let mut config = Config::read()?;
@@ -106,7 +104,7 @@ fn main() -> Result<()> {
Arg::with_name("prune")
.short('p')
.long("prune")
.about("Remove unrelated or leftover '.so' files"),
.about("Remove unrelated or leftover .so files"),
)
.arg(
Arg::with_name("verbose")