Skip to content

Commit

Permalink
Bump to v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejakopovic committed Dec 4, 2022
1 parent a9dfb57 commit 581af00
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fn main() {
// Support for --or as an OR filter input separator
let or_list: Vec<Vec<String>> = 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" {
Expand All @@ -17,7 +18,7 @@ fn main() {
acc
});

// Process each OR filter
// Process each OR argument set
let mut filter: Vec<String> = vec![];
for or in &or_list {

Expand Down

0 comments on commit 581af00

Please sign in to comment.