Skip to content

Commit

Permalink
arg_required_else_help
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Jan 20, 2024
1 parent 077ce06 commit 223541f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Unreleased

- Print help message when no argument is given #378

# 1.1.0 (2024-01-16)

- [HTTP2] Reconnect TCP connection when it fails #369
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ use client::{ClientError, RequestResult};

#[derive(Parser)]
#[clap(author, about, version, override_usage = "oha [FLAGS] [OPTIONS] <url>")]
#[command(arg_required_else_help(true))]
struct Opts {
#[clap(help = "Target URL.")]
url: String,
Expand Down

0 comments on commit 223541f

Please sign in to comment.