diff --git a/Cargo.lock b/Cargo.lock index cd6d034..f1103da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -774,7 +774,7 @@ dependencies = [ [[package]] name = "pbcli" -version = "2.2.1" +version = "2.3.0" dependencies = [ "aes-gcm", "atty", diff --git a/Cargo.toml b/Cargo.toml index 4928c9c..e755df8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = """ pbcli is a command line client which allows to upload and download pastes from privatebin directly from the command line. """ -version = "2.3.0-rc.1" +version = "2.3.0" authors = ["Mydayyy"] edition = "2021" documentation = "https://github.com/Mydayyy/pbcli" diff --git a/README.md b/README.md index a7db02e..03f3c20 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ echo 'TestPaste' | pbcli --host https://privatebin.net/ --burn --- #### CLI Help: ``` -pbcli 2.2.0 +pbcli 2.3.0 Mydayyy @@ -104,12 +104,13 @@ OPTIONS: -h, --help Print help information --host --json - --oidc-client-id - --oidc-password - --oidc-token-url - --oidc-username - --overwrite + --oidc-client-id client id to send to the token endpoint + --oidc-password password to send to the token endpoint + --oidc-token-url oidc token endpoint from which to obtain an access token + --oidc-username username to send to the token endpoint + --overwrite overwrite the file given with --download if it already exists --password + --size-limit Prompt if the paste exceeds the given size. Fail in non-interactive environments --upload -V, --version Print version information ``` diff --git a/src/opts.rs b/src/opts.rs index c11df60..6b3c128 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -28,6 +28,7 @@ pub struct Opts { pub expire: String, #[clap(long, parse(try_from_str = parse_size))] + #[clap(help("Prompt if the paste exceeds the given size. Fail in non-interactive environments."))] pub size_limit: Option, #[clap(long)]