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

Commit d1b3462

Browse files
committed
use char type parameters for short arguments
1 parent 524fc25 commit d1b3462

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
@@ -566,7 +566,7 @@ pub fn app<'a, 'b>(
566566
.setting(AppSettings::SubcommandRequiredElseHelp)
567567
.arg(
568568
Arg::with_name("config_file")
569-
.short("C")
569+
.short('C')
570570
.long("config")
571571
.value_name("PATH")
572572
.takes_value(true)
@@ -575,7 +575,7 @@ pub fn app<'a, 'b>(
575575
)
576576
.arg(
577577
Arg::with_name("verbose")
578-
.short("v")
578+
.short('v')
579579
.long("verbose")
580580
.takes_value(false)
581581
.global(true)
@@ -592,7 +592,7 @@ pub fn app<'a, 'b>(
592592
)
593593
.arg(
594594
Arg::with_name("program_id")
595-
.short("p")
595+
.short('p')
596596
.long("program-id")
597597
.value_name("ADDRESS")
598598
.takes_value(true)
@@ -602,7 +602,7 @@ pub fn app<'a, 'b>(
602602
)
603603
.arg(
604604
Arg::with_name("json_rpc_url")
605-
.short("u")
605+
.short('u')
606606
.long("url")
607607
.value_name("URL_OR_MONIKER")
608608
.takes_value(true)

0 commit comments

Comments
 (0)