style(clap): clean commented out code

This commit is contained in:
Kevin K 2015-04-25 23:55:42 -04:00
parent 17e3f141aa
commit cfffb45aa4
2 changed files with 0 additions and 10 deletions

View file

@ -553,9 +553,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
},format!("<{}>", o.name)));
req_opts.shrink_to_fit();
// usage.push_str(tab);
usage.push_str(&self.bin_name.clone().unwrap_or(self.name.clone())[..]);
// usage.push_str(tab);
if flags {
usage.push_str(" [FLAGS]");
}

View file

@ -228,14 +228,6 @@ impl<'n, 'l, 'h, 'b, 'p, 'r> Arg<'n, 'l, 'h, 'b, 'p, 'r> {
if short.is_some() || long.is_some() {
takes_value = true;
}
// if let Some(l) = long {
// if n != name.unwrap() && name.unwrap() == l {
// name = Some(n);
// if let Some(r) = req {
// required = r;
// }
// }
// }
},
UsageToken::Short(s) => {
short = Some(s);