mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Merge pull request #1070 from ids1024/install-verbose
install: Fix verbose mode
This commit is contained in:
commit
ea43608ab8
1 changed files with 2 additions and 5 deletions
|
@ -138,8 +138,7 @@ fn parse_opts(args: Vec<String>) -> getopts::Matches {
|
||||||
DIRECTORY", "DIRECTORY")
|
DIRECTORY", "DIRECTORY")
|
||||||
// TODO implement flag
|
// TODO implement flag
|
||||||
.optflag("T", "no-target-directory", "(unimplemented) treat DEST as a normal file")
|
.optflag("T", "no-target-directory", "(unimplemented) treat DEST as a normal file")
|
||||||
// TODO implement flag
|
.optflag("v", "verbose", "explain what is being done")
|
||||||
.optflag("v", "verbose", "(unimplemented) explain what is being done")
|
|
||||||
// TODO implement flag
|
// TODO implement flag
|
||||||
.optflag("P", "preserve-context", "(unimplemented) preserve security context")
|
.optflag("P", "preserve-context", "(unimplemented) preserve security context")
|
||||||
// TODO implement flag
|
// TODO implement flag
|
||||||
|
@ -181,8 +180,6 @@ fn check_unimplemented(matches: &getopts::Matches) -> Result<(), &str> {
|
||||||
Err("--target-directory, -t")
|
Err("--target-directory, -t")
|
||||||
} else if matches.opt_present("no-target-directory") {
|
} else if matches.opt_present("no-target-directory") {
|
||||||
Err("--no-target-directory, -T")
|
Err("--no-target-directory, -T")
|
||||||
} else if matches.opt_present("verbose") {
|
|
||||||
Err("--verbose, -v")
|
|
||||||
} else if matches.opt_present("preserve-context") {
|
} else if matches.opt_present("preserve-context") {
|
||||||
Err("--preserve-context, -P")
|
Err("--preserve-context, -P")
|
||||||
} else if matches.opt_present("context") {
|
} else if matches.opt_present("context") {
|
||||||
|
@ -367,7 +364,7 @@ fn copy(from: &PathBuf, to: &PathBuf, b: &Behaviour) -> Result<(), ()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if b.verbose {
|
if b.verbose {
|
||||||
print!("‘{}’ -> ‘{}’", from.display(), to.display());
|
show_info!("'{}' -> '{}'", from.display(), to.display());
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue