Skip to content

Commit 120ea42

Browse files
committed
Allow arguments
1 parent 3d3b953 commit 120ea42

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

bin/run_julia

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
#!/bin/bash
1+
#!/bin/bash -eu
22

33
if [[ $(basename $(pwd)) == "bin" ]]; then
44
cd ..
55
fi
66

77
export JULIA_PKG_SERVER_REGISTRY_PREFERENCE=eager
88

9-
julia --project -i -e 'using VortexStepMethod; function menu(); include("examples/menu.jl"); end'
9+
if [[ $# -gt 0 ]]; then
10+
JULIA_ARGS=("$@")
11+
else
12+
JULIA_ARGS=(-i -e 'using VortexStepMethod; function menu(); include("examples/menu.jl"); end')
13+
fi
14+
15+
julia --project "${JULIA_ARGS[@]}"

0 commit comments

Comments
 (0)