Skip to content

Commit 40e1ab2

Browse files
committed
Handling multiple spaces in the arguments, fix docker run with multiple single quote args
1 parent 2dea279 commit 40e1ab2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docker_run.sh

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
11
#!/bin/bash
22

3-
java -classpath '/usr/local/app/vcell/lib/*' -Dvcell.installDir=/usr/local/app/vcell/installDir org.vcell.cli.CLIStandalone $1 $2 $3 $4 $5 $6
3+
show_help() {
4+
echo "usage: VCell [-h] [-q] -i ARCHIVE [-o OUT_DIR] [-v]"
5+
echo " OPTIONS and ARGUMENTS:"
6+
echo " -h,--help show this help message and exit"
7+
echo ""
8+
echo " -i,--archive <arg> Path to OMEX/COMBINE Archive file which contains one or more SED-ML encoded simulation experiments"
9+
echo ""
10+
echo " -o,--out-dir <arg> Directory to save outputs"
11+
echo ""
12+
echo " -q,--quiet Suppress all console output"
13+
echo ""
14+
echo " -v,--version Shows program's version number and exit"
15+
echo ""
16+
exit 1
17+
}
18+
19+
if [[ $# -lt 1 ]]; then
20+
show_help
21+
fi
22+
23+
java -classpath '/usr/local/app/vcell/lib/*' -Dvcell.installDir=/usr/local/app/vcell/installDir org.vcell.cli.CLIStandalone "$1" "$2" "$3" "$4" "$5" "$6"

0 commit comments

Comments
 (0)