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

Commit 4ed6269

Browse files
committed
directly specify positional parameter indices
1 parent 1dcc501 commit 4ed6269

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

token/cli/src/clap_app.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,7 @@ pub fn app<'a>(
15611561
.value_name("KEYPAIR")
15621562
.validator(|s| is_valid_signer(s))
15631563
.takes_value(true)
1564+
.index(2)
15641565
.help(
15651566
"Specify the keypair for the wallet which will have its native SOL wrapped. \
15661567
This wallet will be assigned as the owner of the wrapped SOL token account. \
@@ -1603,6 +1604,7 @@ pub fn app<'a>(
16031604
.value_name("KEYPAIR")
16041605
.validator(|s| is_valid_signer(s))
16051606
.takes_value(true)
1607+
.index(2)
16061608
.help(
16071609
"Specify the keypair for the wallet which owns the wrapped SOL. \
16081610
This wallet will receive the unwrapped SOL. \
@@ -2210,6 +2212,7 @@ pub fn app<'a>(
22102212
.takes_value(true)
22112213
.multiple(true)
22122214
.min_values(0_usize)
2215+
.index(2)
22132216
.help("The token accounts to withdraw from")
22142217
)
22152218
.arg(

0 commit comments

Comments
 (0)