1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

install: Fix verbose mode

- Do not mark as unimplemented
- Use ascii quotes
- Print newline
This commit is contained in:
Ian Douglas Scott 2017-08-14 13:13:02 -07:00
parent 284e672f82
commit 2853905ebc
No known key found for this signature in database
GPG key ID: 4924E10E199B5959

View file

@ -138,8 +138,7 @@ fn parse_opts(args: Vec<String>) -> getopts::Matches {
DIRECTORY", "DIRECTORY")
// TODO implement flag
.optflag("T", "no-target-directory", "(unimplemented) treat DEST as a normal file")
// TODO implement flag
.optflag("v", "verbose", "(unimplemented) explain what is being done")
.optflag("v", "verbose", "explain what is being done")
// TODO implement flag
.optflag("P", "preserve-context", "(unimplemented) preserve security context")
// TODO implement flag
@ -181,8 +180,6 @@ fn check_unimplemented(matches: &getopts::Matches) -> Result<(), &str> {
Err("--target-directory, -t")
} else if matches.opt_present("no-target-directory") {
Err("--no-target-directory, -T")
} else if matches.opt_present("verbose") {
Err("--verbose, -v")
} else if matches.opt_present("preserve-context") {
Err("--preserve-context, -P")
} else if matches.opt_present("context") {
@ -367,7 +364,7 @@ fn copy(from: &PathBuf, to: &PathBuf, b: &Behaviour) -> Result<(), ()> {
}
if b.verbose {
print!("{} -> {}", from.display(), to.display());
show_info!("'{}' -> '{}'", from.display(), to.display());
}
Ok(())