Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 6fccefe

Browse files
committed
use char type parameters for short arguments
1 parent 6dd2a6c commit 6fccefe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

token/cli/src/clap_app.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ pub fn app<'a, 'b>(
567567
.setting(AppSettings::SubcommandRequiredElseHelp)
568568
.arg(
569569
Arg::with_name("config_file")
570-
.short("C")
570+
.short('C')
571571
.long("config")
572572
.value_name("PATH")
573573
.takes_value(true)
@@ -576,7 +576,7 @@ pub fn app<'a, 'b>(
576576
)
577577
.arg(
578578
Arg::with_name("verbose")
579-
.short("v")
579+
.short('v')
580580
.long("verbose")
581581
.takes_value(false)
582582
.global(true)
@@ -601,7 +601,7 @@ pub fn app<'a, 'b>(
601601
)
602602
.arg(
603603
Arg::with_name("program_id")
604-
.short("p")
604+
.short('p')
605605
.long("program-id")
606606
.value_name("ADDRESS")
607607
.takes_value(true)
@@ -612,7 +612,7 @@ pub fn app<'a, 'b>(
612612
)
613613
.arg(
614614
Arg::with_name("json_rpc_url")
615-
.short("u")
615+
.short('u')
616616
.long("url")
617617
.value_name("URL_OR_MONIKER")
618618
.takes_value(true)

0 commit comments

Comments
 (0)