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

Commit 6aecfbd

Browse files
committed
directly specify positional parameter indices
1 parent c26a85a commit 6aecfbd

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
@@ -1601,6 +1601,7 @@ pub fn app<'a>(
16011601
.value_name("KEYPAIR")
16021602
.validator(|s| is_valid_signer(s))
16031603
.takes_value(true)
1604+
.index(2)
16041605
.help(
16051606
"Specify the keypair for the wallet which will have its native SOL wrapped. \
16061607
This wallet will be assigned as the owner of the wrapped SOL token account. \
@@ -1643,6 +1644,7 @@ pub fn app<'a>(
16431644
.value_name("KEYPAIR")
16441645
.validator(|s| is_valid_signer(s))
16451646
.takes_value(true)
1647+
.index(2)
16461648
.help(
16471649
"Specify the keypair for the wallet which owns the wrapped SOL. \
16481650
This wallet will receive the unwrapped SOL. \
@@ -2250,6 +2252,7 @@ pub fn app<'a>(
22502252
.takes_value(true)
22512253
.multiple(true)
22522254
.min_values(0_usize)
2255+
.index(2)
22532256
.help("The token accounts to withdraw from")
22542257
)
22552258
.arg(

0 commit comments

Comments
 (0)