From aa6a9c6fd70ae46e4f53f0fd68eafbd48d246bb4 Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Sat, 9 May 2015 23:45:43 -0400 Subject: [PATCH] Cleanup pwd. I removed an unused argument from the usage documentation. I also removed the redundant return calls. --- src/pwd/pwd.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pwd/pwd.rs b/src/pwd/pwd.rs index 38b8a6d59..8e163473c 100644 --- a/src/pwd/pwd.rs +++ b/src/pwd/pwd.rs @@ -41,17 +41,13 @@ pub fn uumain(args: Vec) -> 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