Skip to content

Commit

Permalink
fix: Remove threads flag
Browse files Browse the repository at this point in the history
Don't give the user a false sense of hope.  It will be brought back in
as part of #7.
  • Loading branch information
epage committed Jul 20, 2019
1 parent 2c7dc55 commit f5c36a0
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ struct Options {
)]
pub format: Format,

#[structopt(short = "j", long = "threads", default_value = "0")]
/// The approximate number of threads to use.
threads: usize,

#[structopt(long, raw(overrides_with = r#""no-binary""#))]
/// Search binary files.
binary: bool,
Expand Down Expand Up @@ -128,10 +124,6 @@ struct Options {

impl Options {
pub fn infer(mut self) -> Self {
if self.path.len() == 1 && self.path[0].is_file() {
self.threads = 1;
}

self
}

Expand Down Expand Up @@ -248,8 +240,7 @@ fn run() -> Result<(), failure::Error> {
for path in &options.path[1..] {
walk.add(path);
}
walk.threads(options.threads)
.hidden(options.ignore_hidden().unwrap_or(true))
walk.hidden(options.ignore_hidden().unwrap_or(true))
.ignore(options.ignore_dot().unwrap_or(true))
.git_global(options.ignore_global().unwrap_or(true))
.git_ignore(options.ignore_vcs().unwrap_or(true))
Expand Down

0 comments on commit f5c36a0

Please sign in to comment.