Skip to content

Commit

Permalink
Fix --minimum-amount arg parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 8, 2024
1 parent 3b09200 commit 04e9f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/sys-lend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.long("minimum-amount")
.value_name("AMOUNT")
.takes_value(true)
.validator(is_parsable::<u64>)
.validator(is_parsable::<f64>)
.default_value("0.0")
.help("Do not deposit if AMOUNT is less than this value")
)
Expand Down Expand Up @@ -440,7 +440,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.long("minimum-amount")
.value_name("AMOUNT")
.takes_value(true)
.validator(is_parsable::<u64>)
.validator(is_parsable::<f64>)
.default_value("0.0")
.help("Do not deposit if AMOUNT is less than this value")
)
Expand Down

0 comments on commit 04e9f07

Please sign in to comment.