diff --git a/src/command/main.rs b/src/command/main.rs index c93401f..82cb662 100644 --- a/src/command/main.rs +++ b/src/command/main.rs @@ -49,7 +49,7 @@ pub fn run() -> Result<(), Error> { let matches = options.parse(&args[1..])?; - if matches.opt_present("h") || matches.free.is_empty() { + if matches.opt_present("h") { usage!(&options, USAGE); return Ok(()); } @@ -59,6 +59,11 @@ pub fn run() -> Result<(), Error> { return Ok(()); } + if matches.free.is_empty() { + usage!(&options, USAGE); + return Ok(()); + } + // We create all necessary directories here so we don't have to do this // every time some piece of code needs these to exist. create_dir_all(cache_directory()?)?;