Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ will follow a redirection only for the second entry.
| <a href="#no-cookie-store" id="no-cookie-store"><code>--no-cookie-store</code></a> | Do not use cookie storage for requests/responses in a file. By default, requests in the same Hurl file share cookie storage, this option deactivates cookie engine.<br><br>This is a cli-only option.<br> |
| <a href="#no-output" id="no-output"><code>--no-output</code></a> | Suppress output. By default, Hurl outputs the body of the last response.<br><br>This is a cli-only option.<br> |
| <a href="#no-pretty" id="no-pretty"><code>--no-pretty</code></a> | Do not prettify response output for supported content type (JSON only for the moment). By default, output is prettified if<br>standard output is a terminal.<br><br>This is a cli-only option.<br> |
| <a href="#noproxy" id="noproxy"><code>--noproxy &lt;HOST(S)&gt;</code></a> | Comma-separated list of hosts which do not use a proxy.<br><br>Override value from Environment variable no_proxy.<br> |
| <a href="#no-proxy" id="no-proxy"><code>--no-proxy &lt;HOST(S)&gt;</code></a> | Comma-separated list of hosts which do not use a proxy.<br><br>Override value from Environment variable no_proxy.<br> |
| <a href="#ntlm" id="ntlm"><code>--ntlm</code></a> | Tell Hurl to use NTLM authentication<br> |
| <a href="#output" id="output"><code>-o, --output &lt;FILE&gt;</code></a> | Write output to FILE instead of stdout. Use '-' for stdout in [Options] sections.<br> |
| <a href="#parallel" id="parallel"><code>--parallel</code></a> | Run files in parallel.<br><br>Each Hurl file is executed in its own worker thread, without sharing anything with the other workers. The default run mode is sequential. Parallel execution is by default in [`--test`](#test) mode.<br><br>See also [`--jobs`](#jobs).<br><br>This is a cli-only option.<br> |
Expand Down
2 changes: 2 additions & 0 deletions bin/spec/options/generate_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def generate_source_option(option: Option) -> str:
s += f'\n .long("{option.long}")'
if option.short is not None:
s += f"\n .short('{option.short}')"
if option.alias is not None:
s += f'\n .alias("{option.alias}")'
if option.value is not None:
s += f'\n .value_name("{option.value}")'
if option.value_parser is not None:
Expand Down
7 changes: 7 additions & 0 deletions bin/spec/options/option.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Option:
help: Optional[str] = None
help_heading: Optional[str] = None
conflict: Optional[str] = None
alias: Optional[str] = None
append: bool = False
cli_only: bool = False
deprecated: bool = False
Expand All @@ -37,6 +38,8 @@ def __str__(self):
s += "\nhelp_heading: " + self.help_heading
if self.conflict is not None:
s += "\nconflict: " + " ".join(self.conflict)
if self.alias is not None:
s += "\nalias: " + self.alias
if self.append:
s += "\nmulti: append"
if self.cli_only:
Expand All @@ -60,6 +63,7 @@ def parse(s) -> "Option":
help = None
help_heading = None
conflict = None
alias = None
append = False
cli_only = False
deprecated = False
Expand Down Expand Up @@ -94,6 +98,8 @@ def parse(s) -> "Option":
help_heading = v
elif key == "conflict":
conflict = [a.strip() for a in v.split(" ")]
elif key == "alias":
alias = v
elif key == "multi":
if v == "append":
append = True
Expand Down Expand Up @@ -143,6 +149,7 @@ def parse(s) -> "Option":
help=help,
help_heading=help_heading,
conflict=conflict,
alias=alias,
append=append,
cli_only=cli_only,
deprecated=deprecated,
Expand Down
2 changes: 1 addition & 1 deletion completions/_hurl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ _hurl() {
'--no-cookie-store[Do not use cookie store between requests]' \
'--no-output[Suppress output. By default, Hurl outputs the body of the last response]' \
'--no-pretty[Do not prettify response output]' \
'--noproxy[List of hosts which do not use proxy]: :' \
'--no-proxy[List of hosts which do not use proxy]: :' \
'--ntlm[Tell Hurl to use NTLM authentication]' \
'(-o --output)'{-o,--output}'[Write to FILE instead of stdout]: :_files' \
'--parallel[Run files in parallel (default in test mode)]' \
Expand Down
2 changes: 1 addition & 1 deletion completions/_hurl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Register-ArgumentCompleter -Native -CommandName 'hurl' -ScriptBlock {
[CompletionResult]::new('--no-cookie-store', 'no-cookie-store', [CompletionResultType]::ParameterName, 'Do not use cookie store between requests')
[CompletionResult]::new('--no-output', 'no-output', [CompletionResultType]::ParameterName, 'Suppress output. By default, Hurl outputs the body of the last response')
[CompletionResult]::new('--no-pretty', 'no-pretty', [CompletionResultType]::ParameterName, 'Do not prettify response output')
[CompletionResult]::new('--noproxy', 'noproxy', [CompletionResultType]::ParameterName, 'List of hosts which do not use proxy')
[CompletionResult]::new('--no-proxy', 'no-proxy', [CompletionResultType]::ParameterName, 'List of hosts which do not use proxy')
[CompletionResult]::new('--ntlm', 'ntlm', [CompletionResultType]::ParameterName, 'Tell Hurl to use NTLM authentication')
[CompletionResult]::new('--output', 'output', [CompletionResultType]::ParameterName, 'Write to FILE instead of stdout')
[CompletionResult]::new('--parallel', 'parallel', [CompletionResultType]::ParameterName, 'Run files in parallel (default in test mode)')
Expand Down
2 changes: 1 addition & 1 deletion completions/hurl.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _hurl()
cur="${COMP_WORDS[COMP_CWORD]}"

if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '--aws-sigv4 --cacert --cert --key --color --compressed --connect-timeout --connect-to --continue-on-error --cookie --cookie-jar --curl --delay --digest --error-format --file-root --location --location-trusted --from-entry --glob --header --http1.0 --http1.1 --http2 --http3 --ignore-asserts --include --insecure --interactive --ipv4 --ipv6 --jobs --json --limit-rate --max-filesize --max-redirs --max-time --negotiate --netrc --netrc-file --netrc-optional --no-color --no-cookie-store --no-output --no-pretty --noproxy --ntlm --output --parallel --path-as-is --pinnedpubkey --pretty --progress-bar --proxy --repeat --report-html --report-json --report-junit --report-tap --resolve --retry --retry-interval --secret --secrets-file --ssl-no-revoke --test --to-entry --unix-socket --user --user-agent --variable --variables-file --verbose --verbosity --very-verbose --help --version' -- "$cur"))
COMPREPLY=($(compgen -W '--aws-sigv4 --cacert --cert --key --color --compressed --connect-timeout --connect-to --continue-on-error --cookie --cookie-jar --curl --delay --digest --error-format --file-root --location --location-trusted --from-entry --glob --header --http1.0 --http1.1 --http2 --http3 --ignore-asserts --include --insecure --interactive --ipv4 --ipv6 --jobs --json --limit-rate --max-filesize --max-redirs --max-time --negotiate --netrc --netrc-file --netrc-optional --no-color --no-cookie-store --no-output --no-pretty --no-proxy --ntlm --output --parallel --path-as-is --pinnedpubkey --pretty --progress-bar --proxy --repeat --report-html --report-json --report-junit --report-tap --resolve --retry --retry-interval --secret --secrets-file --ssl-no-revoke --test --to-entry --unix-socket --user --user-agent --variable --variables-file --verbose --verbosity --very-verbose --help --version' -- "$cur"))
return
fi
# Generate filenames by default
Expand Down
2 changes: 1 addition & 1 deletion completions/hurl.fish
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ complete -c hurl -l no-color -d 'Do not colorize output'
complete -c hurl -l no-cookie-store -d 'Do not use cookie store between requests'
complete -c hurl -l no-output -d 'Suppress output. By default, Hurl outputs the body of the last response'
complete -c hurl -l no-pretty -d 'Do not prettify response output'
complete -c hurl -l noproxy -d 'List of hosts which do not use proxy'
complete -c hurl -l no-proxy -d 'List of hosts which do not use proxy'
complete -c hurl -l ntlm -d 'Tell Hurl to use NTLM authentication'
complete -c hurl -l output -d 'Write to FILE instead of stdout'
complete -c hurl -l parallel -d 'Run files in parallel (default in test mode)'
Expand Down
2 changes: 1 addition & 1 deletion docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ will follow a redirection only for the second entry.
| <a href="#no-cookie-store" id="no-cookie-store"><code>--no-cookie-store</code></a> | Do not use cookie storage for requests/responses in a file. By default, requests in the same Hurl file share cookie storage, this option deactivates cookie engine.<br><br>This is a cli-only option.<br> |
| <a href="#no-output" id="no-output"><code>--no-output</code></a> | Suppress output. By default, Hurl outputs the body of the last response.<br><br>This is a cli-only option.<br> |
| <a href="#no-pretty" id="no-pretty"><code>--no-pretty</code></a> | Do not prettify response output for supported content type (JSON only for the moment). By default, output is prettified if<br>standard output is a terminal.<br><br>This is a cli-only option.<br> |
| <a href="#noproxy" id="noproxy"><code>--noproxy &lt;HOST(S)&gt;</code></a> | Comma-separated list of hosts which do not use a proxy.<br><br>Override value from Environment variable no_proxy.<br> |
| <a href="#no-proxy" id="no-proxy"><code>--no-proxy &lt;HOST(S)&gt;</code></a> | Comma-separated list of hosts which do not use a proxy.<br><br>Override value from Environment variable no_proxy.<br> |
| <a href="#ntlm" id="ntlm"><code>--ntlm</code></a> | Tell Hurl to use NTLM authentication<br> |
| <a href="#output" id="output"><code>-o, --output &lt;FILE&gt;</code></a> | Write output to FILE instead of stdout. Use '-' for stdout in [Options] sections.<br> |
| <a href="#parallel" id="parallel"><code>--parallel</code></a> | Run files in parallel.<br><br>Each Hurl file is executed in its own worker thread, without sharing anything with the other workers. The default run mode is sequential. Parallel execution is by default in [`--test`](#test) mode.<br><br>See also [`--jobs`](#jobs).<br><br>This is a cli-only option.<br> |
Expand Down
4 changes: 2 additions & 2 deletions docs/manual/hurl.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH hurl 1 "18 Jan 2026" "hurl 8.0.0-SNAPSHOT" " Hurl Manual"
.TH hurl 1 "19 Jan 2026" "hurl 8.0.0-SNAPSHOT" " Hurl Manual"
.SH NAME

hurl - run and test HTTP requests.
Expand Down Expand Up @@ -389,7 +389,7 @@ standard output is a terminal.

This is a cli-only option.

.IP "--noproxy <HOST(S)> "
.IP "--no-proxy <HOST(S)> "

Comma-separated list of hosts which do not use a proxy.

Expand Down
2 changes: 1 addition & 1 deletion docs/manual/hurl.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ standard output is a terminal.

This is a cli-only option.

### --noproxy <HOST(S)> {#noproxy}
### --no-proxy <HOST(S)> {#no-proxy}

Comma-separated list of hosts which do not use a proxy.

Expand Down
2 changes: 1 addition & 1 deletion docs/manual/hurlfmt.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH hurl 1 "18 Jan 2026" "hurl 8.0.0-SNAPSHOT" " Hurl Manual"
.TH hurl 1 "19 Jan 2026" "hurl 8.0.0-SNAPSHOT" " Hurl Manual"
.SH NAME

hurlfmt - format Hurl files
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: noproxy
long: noproxy
name: no_proxy
long: no-proxy
value: HOST(S)
help: List of hosts which do not use proxy
help_heading: HTTP options
alias: noproxy
---
Comma-separated list of hosts which do not use a proxy.

Expand Down
2 changes: 1 addition & 1 deletion integration/hurl/tests_error_parser/invalid_option.err
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ error: Parsing option
--> tests_error_parser/invalid_option.hurl:3:1
|
3 | foo: true
| ^ the option name is not valid. Valid values are aws-sigv4, cacert, cert, compressed, connect-timeout, connect-to, delay, digest, header, http1.0, http1.1, http2, http3, insecure, ipv4, ipv6, key, limit-rate, location, location-trusted, max-redirs, max-time, negotiate, netrc, netrc-file, netrc-optional, noproxy, ntlm, output, path-as-is, pinnedpubkey, proxy, repeat, resolve, retry, retry-interval, skip, unix-socket, user, variable, verbose, verbosity, very-verbose
| ^ the option name is not valid. Valid values are aws-sigv4, cacert, cert, compressed, connect-timeout, connect-to, delay, digest, header, http1.0, http1.1, http2, http3, insecure, ipv4, ipv6, key, limit-rate, location, location-trusted, max-redirs, max-time, negotiate, netrc, netrc-file, netrc-optional, no-proxy, ntlm, output, path-as-is, pinnedpubkey, proxy, repeat, resolve, retry, retry-interval, skip, unix-socket, user, variable, verbose, verbosity, very-verbose
|

2 changes: 1 addition & 1 deletion integration/hurl/tests_ok/help/help.out.pattern
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ HTTP options:
Tell Hurl to use Negotiate (SPNEGO) authentication
--no-cookie-store
Do not use cookie store between requests
--noproxy <HOST(S)>
--no-proxy <HOST(S)>
List of hosts which do not use proxy
--ntlm
Tell Hurl to use NTLM authentication
Expand Down
Loading
Loading