1.2.0 :: added descriptions to all the flags in the help text
This commit is contained in:
parent
de10d3af6c
commit
2f658b0604
3 changed files with 10 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -144,7 +144,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dolltool"
|
name = "dolltool"
|
||||||
version = "1.1.1"
|
version = "1.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"num-bigint",
|
"num-bigint",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
name = "dolltool"
|
name = "dolltool"
|
||||||
version = "1.1.1"
|
version = "1.2.0"
|
||||||
authors = ["ika4422"]
|
authors = ["ika4422"]
|
||||||
description = "A simple dollcode encoder, decoder, and generator inside your terminal :3"
|
description = "A simple dollcode encoder, decoder, and generator inside your terminal :3"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
|
||||||
|
|
@ -33,27 +33,35 @@ use crate::{
|
||||||
#[command(author, version, about)]
|
#[command(author, version, about)]
|
||||||
struct Args {
|
struct Args {
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
|
/// Encodes the following integer or text into dollcode
|
||||||
encode: Option<String>,
|
encode: Option<String>,
|
||||||
|
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
|
/// Decodes the following dollcode into an integer or text
|
||||||
decode: Option<String>,
|
decode: Option<String>,
|
||||||
|
|
||||||
#[arg(short, long, default_value_t = false)]
|
#[arg(short, long, default_value_t = false)]
|
||||||
|
/// Specifies the encoding/decoding method as text, not as an integer
|
||||||
text: bool,
|
text: bool,
|
||||||
|
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
|
/// Generates codes from a user-defined pattern (n = number; l = letter; a = alphanumeric)
|
||||||
generate: Option<String>,
|
generate: Option<String>,
|
||||||
|
|
||||||
#[arg(short, long, default_value_t = 1)]
|
#[arg(short, long, default_value_t = 1)]
|
||||||
|
/// Specifies how many codes to generate
|
||||||
count: usize,
|
count: usize,
|
||||||
|
|
||||||
#[arg(short, long, default_value_t = false)]
|
#[arg(short, long, default_value_t = false)]
|
||||||
|
/// Outputs generated letters as uppercase as opposed to lowercase
|
||||||
upper: bool,
|
upper: bool,
|
||||||
|
|
||||||
#[arg(long, default_value_t = false)]
|
#[arg(long, default_value_t = false)]
|
||||||
|
/// Will generate codes without encoding it into dollcode
|
||||||
no_doll: bool,
|
no_doll: bool,
|
||||||
|
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
|
/// Display the license for dolltool
|
||||||
license: bool,
|
license: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue