From 581af0024465f35ddf606eab886eddb7b273227c Mon Sep 17 00:00:00 2001 From: Blake Jakopovic Date: Sun, 4 Dec 2022 19:47:18 +0100 Subject: [PATCH] Bump to v0.1.1 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/lib.rs | 2 +- src/main.rs | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1c7e62e..15710fc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -125,7 +125,7 @@ checksum = "8f9f08d8963a6c613f4b1a78f4f4a4dbfadf8e6545b2d72861731e4858b8b47f" [[package]] name = "nostreq" -version = "0.1.0" +version = "0.1.1" dependencies = [ "clap", "serde", diff --git a/Cargo.toml b/Cargo.toml index 8951507..a2c3ad9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "nostreq" description = "Nostr relay event request generator" -version = "0.1.0" +version = "0.1.1" edition = "2021" repository = "https://github.com/blakejakopovic/nostreq" license-file = "LICENSE.txt" diff --git a/src/lib.rs b/src/lib.rs index c7d6185..4e6b03f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ use serde::{Serialize, Deserialize}; pub fn cli() -> Command { Command::new("nostreq") .about("Nostr relay event request generator") - .version("0.1.0") + .version("0.1.1") .author("Blake Jakopovic") .arg( Arg::new("subscription-id") diff --git a/src/main.rs b/src/main.rs index b9a4b3b..39fda0e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,6 +9,7 @@ fn main() { // Support for --or as an OR filter input separator let or_list: Vec> = args[1..].into_iter().fold(Vec::new(), |mut acc, x| { if x == "--or" || acc.is_empty() { + // clap expects the program name in index 0, so we must add it to each OR arg set acc.push(vec![String::from(args[0].to_string())]); } if x != "--or" { @@ -17,7 +18,7 @@ fn main() { acc }); - // Process each OR filter + // Process each OR argument set let mut filter: Vec = vec![]; for or in &or_list {