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

Commit 7f40b38

Browse files
committed
use char type parameters for short arguments
1 parent e6f43c6 commit 7f40b38

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
@@ -554,7 +554,7 @@ pub fn app<'a, 'b>(
554554
.setting(AppSettings::SubcommandRequiredElseHelp)
555555
.arg(
556556
Arg::with_name("config_file")
557-
.short("C")
557+
.short('C')
558558
.long("config")
559559
.value_name("PATH")
560560
.takes_value(true)
@@ -563,7 +563,7 @@ pub fn app<'a, 'b>(
563563
)
564564
.arg(
565565
Arg::with_name("verbose")
566-
.short("v")
566+
.short('v')
567567
.long("verbose")
568568
.takes_value(false)
569569
.global(true)
@@ -580,7 +580,7 @@ pub fn app<'a, 'b>(
580580
)
581581
.arg(
582582
Arg::with_name("program_id")
583-
.short("p")
583+
.short('p')
584584
.long("program-id")
585585
.value_name("ADDRESS")
586586
.takes_value(true)
@@ -590,7 +590,7 @@ pub fn app<'a, 'b>(
590590
)
591591
.arg(
592592
Arg::with_name("json_rpc_url")
593-
.short("u")
593+
.short('u')
594594
.long("url")
595595
.value_name("URL_OR_MONIKER")
596596
.takes_value(true)

0 commit comments

Comments
 (0)