Clean hurl --help.

This commit is contained in:
jcamiel 2022-10-17 18:08:19 +02:00
parent bfffb04ec5
commit d34647ca7e
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
2 changed files with 5 additions and 5 deletions

View File

@ -86,11 +86,11 @@ pub fn app(version: &str) -> Command {
let default_timeout = default_timeout.as_secs();
Command::new("hurl")
.about("Run hurl FILE(s) or standard input")
.about("Run Hurl file(s) or standard input")
.disable_colored_help(true)
.version(version.to_string())
.arg(
clap::Arg::new("INPUT")
clap::Arg::new("FILE")
.help("Sets the input file to use")
.required(false)
.num_args(1..)
@ -309,7 +309,7 @@ pub fn app(version: &str) -> Command {
clap::Arg::new("user")
.short('u')
.long("user")
.value_name("user:password")
.value_name("USER:PASSWORD")
.help("Add basic Authentication header to each request")
.num_args(1)
)
@ -317,7 +317,7 @@ pub fn app(version: &str) -> Command {
clap::Arg::new("user_agent")
.short('A')
.long("user-agent")
.value_name("name")
.value_name("NAME")
.help("Specify the User-Agent string to send to the HTTP server")
.num_args(1)
)

View File

@ -255,7 +255,7 @@ fn main() {
let cli_options = unwrap_or_exit(cli_options, EXIT_ERROR_UNDEFINED, &base_logger);
let mut filenames = vec![];
if let Some(values) = cli::get_strings(&matches, "INPUT") {
if let Some(values) = cli::get_strings(&matches, "FILE") {
for value in values {
filenames.push(value.to_string());
}