We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9eecfc commit 13ce66dCopy full SHA for 13ce66d
src/command/main.rs
@@ -49,7 +49,7 @@ pub fn run() -> Result<(), Error> {
49
50
let matches = options.parse(&args[1..])?;
51
52
- if matches.opt_present("h") || matches.free.is_empty() {
+ if matches.opt_present("h") {
53
usage!(&options, USAGE);
54
return Ok(());
55
}
@@ -59,6 +59,11 @@ pub fn run() -> Result<(), Error> {
59
60
61
62
+ if matches.free.is_empty() {
63
+ usage!(&options, USAGE);
64
+ return Ok(());
65
+ }
66
+
67
// We create all necessary directories here so we don't have to do this
68
// every time some piece of code needs these to exist.
69
create_dir_all(cache_directory()?)?;
0 commit comments