Skip to content

Commit

Permalink
Change command line argument names to use hyphens instead of underscores
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Niethammer <[email protected]>
  • Loading branch information
cniethammer committed Jan 16, 2025
1 parent 49ef39e commit f257e22
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions examples/run-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ MPIRUN_ARGS="-n 4 --oversubscribe"
EXAMPLE_LIST_FILE=${EXAMPLE_LIST_FILE:=example-list.txt}
LOGFILE=${LOGFILE:=$PWD/run-examples.log}

TEMP=$(getopt -o vh --long "help,inputlist:,logfile:,mardyn_args:,mardyn_exe:,mpirun_args:,mpirun_exe:,verbose" -- "$@")
TEMP=$(getopt -o vh --long "help,inputlist:,logfile:,mardyn-args:,mardyn-exe:,mpirun-args:,mpirun-exe:,verbose" -- "$@")

if [ $? -ne 0 ]; then
echo "Error parsing commandline"
Expand All @@ -38,10 +38,10 @@ Usage:
Options:
-i,--inputlist <FILE> path to an inputfile list
--logfile <FILE> path for the logfile
--mpirun_exe <mpirun> mpirun command or path to mpirun executable
--mpirun_args <ARGS> arguments to be passed to the mpirun command
--mardyn_exe <MarDyn> path to a MarDyn executable
--mardyn_args <ARGS> arguments to be passed to MarDyn for each input file
--mpirun-exe <mpirun> mpirun command or path to mpirun executable
--mpirun-args <ARGS> arguments to be passed to the mpirun command
--mardyn-exe <MarDyn> path to a MarDyn executable
--mardyn-args <ARGS> arguments to be passed to MarDyn for each input file
-v,--verbose verbose output
-h,--help show this help
Expand All @@ -55,22 +55,22 @@ while true; do
shift 2
continue
;;
'--mardyn_exe')
'--mardyn-exe')
MARDYN_EXE="$2"
shift 2
continue
;;
'--mardyn_args')
'--mardyn-args')
MARDYN_ARGS="$2"
shift 2
continue
;;
'--mpirun_exe')
'--mpirun-exe')
MPIRUN_EXE="$2"
shift 2
continue
;;
'--mpirun_args')
'--mpirun-args')
MPIRUN_ARGS="$2"
shift 2
continue
Expand Down

0 comments on commit f257e22

Please sign in to comment.