@@ -3,9 +3,8 @@ use clap::{arg, Parser};
3
3
#[ derive( Parser , Debug ) ]
4
4
pub struct BalanceArgs {
5
5
#[ arg(
6
- long,
7
6
value_name = "ADDRESS" ,
8
- help = "The address of the account to fetch the balance of"
7
+ help = "The account address to fetch the balance of"
9
8
) ]
10
9
pub address : Option < String > ,
11
10
}
@@ -28,7 +27,6 @@ pub struct BussesArgs {}
28
27
#[ derive( Parser , Debug ) ]
29
28
pub struct ClaimArgs {
30
29
#[ arg(
31
- long,
32
30
value_name = "AMOUNT" ,
33
31
help = "The amount of rewards to claim. Defaults to max."
34
32
) ]
@@ -37,7 +35,7 @@ pub struct ClaimArgs {
37
35
#[ arg(
38
36
long,
39
37
value_name = "WALLET_ADDRESS" ,
40
- help = "Wallet to receive claimed tokens."
38
+ help = "Wallet address to receive claimed tokens."
41
39
) ]
42
40
pub to : Option < String > ,
43
41
}
@@ -75,11 +73,7 @@ pub struct MineArgs {
75
73
76
74
#[ derive( Parser , Debug ) ]
77
75
pub struct ProofArgs {
78
- #[ arg(
79
- index = 0 ,
80
- value_name = "ADDRESS" ,
81
- help = "The address of the proof to fetch"
82
- ) ]
76
+ #[ arg( value_name = "ADDRESS" , help = "The address of the proof to fetch" ) ]
83
77
pub address : Option < String > ,
84
78
}
85
79
@@ -89,32 +83,25 @@ pub struct RewardsArgs {}
89
83
#[ derive( Parser , Debug ) ]
90
84
pub struct StakeArgs {
91
85
#[ arg(
92
- long,
93
86
value_name = "AMOUNT" ,
94
- help = "The amount of Ore to stake. Defaults to max."
87
+ help = "The amount of ORE to stake. Defaults to max."
95
88
) ]
96
89
pub amount : Option < f64 > ,
97
90
98
91
#[ arg(
99
92
long,
100
93
value_name = "TOKEN_ACCOUNT_ADDRESS" ,
101
- help = "Token account to send Ore from."
94
+ help = "Token account to send ORE from. Defaults to the associated token account ."
102
95
) ]
103
- pub sender : Option < String > ,
96
+ pub token_account : Option < String > ,
104
97
}
105
98
106
99
#[ derive( Parser , Debug ) ]
107
100
pub struct TransferArgs {
108
- #[ arg(
109
- index = 0 ,
110
- value_name = "AMOUNT" ,
111
- help = "The amount of ORE to transfer." ,
112
- required = true
113
- ) ]
101
+ #[ arg( value_name = "AMOUNT" , help = "The amount of ORE to transfer." ) ]
114
102
pub amount : f64 ,
115
103
116
104
#[ arg(
117
- index = 1 ,
118
105
value_name = "WALLET_ADDRESS" ,
119
106
help = "The wallet address of the receipient."
120
107
) ]
@@ -124,9 +111,8 @@ pub struct TransferArgs {
124
111
#[ derive( Parser , Debug ) ]
125
112
pub struct UpgradeArgs {
126
113
#[ arg(
127
- long,
128
114
value_name = "AMOUNT" ,
129
- help = "The amount of Ore to upgrade from v1 to v2. Defaults to max."
115
+ help = "The amount of ORE to upgrade from v1 to v2. Defaults to max."
130
116
) ]
131
117
pub amount : Option < f64 > ,
132
118
}
0 commit comments