1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 05:57:46 +00:00

Cleanup pwd.

I removed an unused argument from the usage documentation. I also
removed the redundant return calls.
This commit is contained in:
Joseph Crail 2015-05-09 23:45:43 -04:00
parent 1f67aaaf8c
commit aa6a9c6fd7

View file

@ -41,17 +41,13 @@ pub fn uumain(args: Vec<String>) -> i32 {
println!("pwd {}", VERSION); println!("pwd {}", VERSION);
println!(""); println!("");
println!("Usage:"); println!("Usage:");
println!(" {0} [OPTION] NAME...", program); println!(" {0} [OPTION]...", program);
println!(""); println!("");
print!("{}", getopts::usage("Print the full filename of the current working directory.", &opts)); print!("{}", getopts::usage("Print the full filename of the current working directory.", &opts));
} else if matches.opt_present("version") { } else if matches.opt_present("version") {
println!("pwd version: {}", VERSION); println!("pwd version: {}", VERSION);
return 0;
} else { } else {
println!("{}", env::current_dir().unwrap().display()); println!("{}", env::current_dir().unwrap().display());
return 0;
} }
0 0