From 9ca06fd9742f2a38ab8ca0dc8e6be116e95b6b84 Mon Sep 17 00:00:00 2001 From: Fanda Vacek Date: Wed, 17 Jul 2024 23:02:42 +0200 Subject: [PATCH] Remove param check, which disable ussge of stdin --- src/main.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index cda7ca9..ef57120 100644 --- a/src/main.rs +++ b/src/main.rs @@ -251,9 +251,6 @@ async fn make_call(url: &Url, opts: &Opts) -> Result { }; Ok((path, method, param)) } - if opts.path.is_none() && opts.method.is_none() { - return Err("--path or --method parameter must be specified".into()); - } if opts.path.is_some() && opts.method.is_none() { return Err("--method parameter missing".into()); }