mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-09-11 05:35:53 +03:00
Add conflict attribute for netrc* options
This commit is contained in:
parent
286f143fc4
commit
e6c44a002e
@ -1,6 +1,7 @@
|
||||
name: netrc
|
||||
long: netrc
|
||||
short: n
|
||||
conflict: netrc_file netrc_optional
|
||||
help: Must read .netrc for username and password
|
||||
---
|
||||
Scan the .netrc file in the user's home directory for the username and password.
|
||||
|
@ -1,6 +1,7 @@
|
||||
name: netrc_file
|
||||
long: netrc-file
|
||||
value: FILE
|
||||
conflict: netrc
|
||||
help: Specify FILE for .netrc
|
||||
---
|
||||
Like [`--netrc`](#netrc), but provide the path to the netrc file.
|
||||
|
@ -1,6 +1,7 @@
|
||||
name: netrc_optional
|
||||
long: netrc-optional
|
||||
help: Use either .netrc or the URL
|
||||
conflict: netrc
|
||||
---
|
||||
Similar to [`--netrc`](#netrc), but make the .netrc usage optional.
|
||||
|
||||
|
@ -289,6 +289,8 @@ pub fn netrc() -> clap::Arg {
|
||||
.long("netrc")
|
||||
.short('n')
|
||||
.help("Must read .netrc for username and password")
|
||||
.conflicts_with("netrc_file")
|
||||
.conflicts_with("netrc_optional")
|
||||
.action(clap::ArgAction::SetTrue)
|
||||
}
|
||||
|
||||
@ -297,6 +299,7 @@ pub fn netrc_file() -> clap::Arg {
|
||||
.long("netrc-file")
|
||||
.value_name("FILE")
|
||||
.help("Specify FILE for .netrc")
|
||||
.conflicts_with("netrc")
|
||||
.num_args(1)
|
||||
}
|
||||
|
||||
@ -304,6 +307,7 @@ pub fn netrc_optional() -> clap::Arg {
|
||||
clap::Arg::new("netrc_optional")
|
||||
.long("netrc-optional")
|
||||
.help("Use either .netrc or the URL")
|
||||
.conflicts_with("netrc")
|
||||
.action(clap::ArgAction::SetTrue)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user