Skip to content

Commit

Permalink
Make README.md the default when no inputs are given
Browse files Browse the repository at this point in the history
That used to be the case according to the docs,
but somehow we broke it while introducing some
changes.
  • Loading branch information
mre committed Nov 25, 2020
1 parent 883f638 commit 68b574d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ macro_rules! fold_in {
#[structopt(name = "lychee", about = "A glorious link checker")]
pub(crate) struct LycheeOptions {
/// Input files
#[structopt(default_value = "README.md")]
pub inputs: Vec<String>,

/// Configuration file to use
Expand Down Expand Up @@ -167,10 +168,7 @@ impl Config {
Ok(c) => c,
Err(e) => {
return match e.kind() {
ErrorKind::NotFound => {
println!("[WARN] could not find configuration file, using arguments");
Ok(None)
}
ErrorKind::NotFound => Ok(None),
_ => Err(Error::from(e)),
}
}
Expand Down

0 comments on commit 68b574d

Please sign in to comment.