mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
style(clap): clean commented out code
This commit is contained in:
parent
17e3f141aa
commit
cfffb45aa4
2 changed files with 0 additions and 10 deletions
|
@ -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]");
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue