Skip to content

Commit 0a42dc5

Browse files
committed
Add CLI help information
1 parent 0d1d1ae commit 0a42dc5

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bdsp_ug_generator"
3-
version = "0.1.0"
3+
version = "0.2.1"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src/main.rs

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,29 @@ struct Cli {
1717
story_flag: u8,
1818
#[clap(short = 's', long)]
1919
shiny_only: bool,
20-
#[clap(long, default_value = "0/0/0/0/0/0")]
20+
#[clap(
21+
long,
22+
default_value = "0/0/0/0/0/0",
23+
help = "Input format is x/x/x/x/x/x. Values can be elided for the default of 0. Ex 31//31/31/31/31"
24+
)]
2125
min_ivs: String,
22-
#[clap(long, default_value = "31/31/31/31/31/31")]
26+
#[clap(
27+
long,
28+
default_value = "31/31/31/31/31/31",
29+
help = "Input format is x/x/x/x/x/x. Values can be elided for the default of 31. Ex /0////"
30+
)]
2331
max_ivs: String,
24-
#[clap(long)]
32+
#[clap(long, help = "Input pokemon species number")]
2533
species: Option<u16>,
26-
#[clap(long)]
34+
#[clap(long, help = "Input nature ID number")]
2735
nature: Option<u8>,
28-
#[clap(long)]
36+
#[clap(long, help = "Input is 0 or 1 for ability 1 and 2")]
2937
ability: Option<u8>,
30-
#[clap(long)]
38+
#[clap(long, help = "Input is a item ID number")]
3139
item: Option<u16>,
32-
#[clap(long)]
40+
#[clap(long, help = "Input is a move ID number")]
3341
egg_move: Option<u16>,
34-
#[clap(long)]
42+
#[clap(long, help = "Options are 0, 1, 2 for male, female, genderless")]
3543
gender: Option<u8>,
3644
advances: u32,
3745
s0: String,

0 commit comments

Comments
 (0)