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

Merge pull request #588 from jbcrail/cleanup-pwd

Cleanup pwd.
This commit is contained in:
Heather 2015-05-10 12:35:22 +03:00
commit 8deb9a8dc1

View file

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