Skip to content

Commit 0498fd0

Browse files
committed
cli: add -I and -P short options for --insecure and --proxy
1 parent 64d0975 commit 0498fd0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

crates/cli/doc/include/service-options.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ This can be used to connect to a server that has a self-signed certificate
1919
without having to use `--insecure`. Note that this requires a PEM encoded
2020
certificate file.
2121

22-
*--insecure*::
22+
*-I, --insecure*::
2323
Ignore invalid service certificates when connecting.
2424

25-
*--proxy <URL>*::
25+
*-P, --proxy <URL>*::
2626
Use a custom proxy.
2727

2828
*-t, --timeout <seconds>*::

crates/cli/src/service.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ struct ServiceOptions {
2424

2525
/// ignore invalid service certificates
2626
#[arg(
27+
short = 'I',
2728
long,
2829
num_args = 0,
2930
default_missing_value = "true",
@@ -32,7 +33,7 @@ struct ServiceOptions {
3233
insecure: Option<bool>,
3334

3435
/// custom proxy
35-
#[arg(long, value_name = "URL")]
36+
#[arg(short = 'P', long, value_name = "URL")]
3637
proxy: Option<String>,
3738

3839
/// request timeout in seconds

0 commit comments

Comments
 (0)