bumped clap version from v3 to v4
Some checks failed
Cargo Build / build (push) Has been cancelled

This commit is contained in:
Vomitblood 2024-06-04 12:49:53 +08:00
parent 48a2da8a75
commit 104b4eb780
4 changed files with 301 additions and 224 deletions

506
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"
[dependencies]
clap = { version = "3.2.22", features = ["cargo"] }
clap = { version = "4.5.4", features = ["cargo"] }
crossterm = "0.27.0"
dirs = "5.0.1"
image = "0.25.1"

9
src/bin/test.rs Normal file
View file

@ -0,0 +1,9 @@
fn main() {
println!("hello, world");
let bruh: &str = "hello";
println!("bruh this is one of the worst things of all time");
println!("{}", bruh);
}

View file

@ -157,7 +157,7 @@ For more advanced usage, use `less` or `more` to scroll through the list!",
.short('f')
.long("form")
.default_value("regular")
.multiple_values(true)
.value_delimiter(' ')
.requires("name_or_pokedex"),
)
// print/hide-name
@ -175,7 +175,7 @@ For more advanced usage, use `less` or `more` to scroll through the list!",
.long("name")
.default_value("")
.hide_default_value(true)
.multiple_values(true)
.value_delimiter(' ')
.conflicts_with("pokedex")
)
// print/pokedex
@ -189,7 +189,7 @@ For more advanced usage, use `less` or `more` to scroll through the list!",
.value_parser(clap::value_parser!(u16).range(0..906))
.default_value("0")
.hide_default_value(true)
.multiple_values(true)
.value_delimiter(' ')
.conflicts_with("name")
)
// print/shiny
@ -215,7 +215,7 @@ For more advanced usage, use `less` or `more` to scroll through the list!",
)
.group(
clap::ArgGroup::new("name_or_pokedex")
.args(&["name", "pokedex"])
.args(["name", "pokedex"])
.required(false),
)
)