Skip to content

Commit

Permalink
feat: remove upper memory limit in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool committed May 16, 2023
1 parent f811713 commit 3ea7960
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn cli() -> Command {
.args(&[
arg!(-m --memory <memory> "memory limit in MB")
.default_value("512")
.value_parser(value_parser!(u32).range(1..=4096)),
.value_parser(value_parser!(u32).range(1..)),
arg!(-c --cost <cost> "computational cost limit in instruction count")
.default_value("1000000000")
.value_parser(value_parser!(u64).range(1..)),
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async fn main() {
Some(("run", args)) => {
let mem: u32 = *args
.get_one("memory")
.expect("memory limit should be in range 1..=4096");
.expect("memory limit should be in range 1..");
let cost: u64 = *args
.get_one("cost")
.expect("cost limit should be in range 1..");
Expand Down

0 comments on commit 3ea7960

Please sign in to comment.