Skip to content

Commit

Permalink
changed task1 start code
Browse files Browse the repository at this point in the history
  • Loading branch information
sadit committed Mar 17, 2024
1 parent 977903e commit 5d373a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions task1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ function task1(;
end

if !isinteractive()
if length(ARGS) == 0 || !all(dbsize -> dbsize ("300K", "10M", "100M"), ARGS)
throw(ArgumentError("this script must be called with one of the following arguments: 300K, 10M or 100M"))
if length(ARGS) == 0 || any(dbsize -> dbsize ("300K", "10M", "100M"), ARGS)
throw(ArgumentError("this script must be called with a list of the following arguments: 300K, 10M or 100M"))
end

for dbsize in ARGS
Expand Down

0 comments on commit 5d373a4

Please sign in to comment.