Skip to content

Commit 4f33ea8

Browse files
committed
Change 'debug' to 'verbose'
1 parent db2f6b4 commit 4f33ea8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ncparallel

+7-7
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ Flags
3232
has fixed length in the OUTPUT file.
3333
-k If passed, temporary files and log files are not deleted. By default,
3434
log files are only kept if a process failed.
35-
-s If passed, messages are silenced.
36-
-d If passed, extra debug messages are printed.
35+
-s If passed, silent mode is enabled and all messages are suppressed.
36+
-v If passed, verbose mode is enabled and extra messages are printed.
3737
"
3838
# Get arguments
39-
debug=false
39+
verbose=false
4040
dimname=lat # can also split along time dimension?
4141
fixrec=false
4242
keep=false
@@ -55,13 +55,13 @@ while [ $# -ne 0 ]; do
5555
-k) keep=true ;;
5656
-r) reverse=true ;;
5757
-s) silent=true ;;
58-
-d) debug=true ;;
58+
-v) verbose=true ;;
5959
-*) raise "Unknown argument ${1}." ;;
6060
*) args+=("$1") ;;
6161
esac
6262
shift
6363
done
64-
$debug && flag_ncks='-D 2'
64+
$verbose && flag_ncks='-D 2'
6565
[ -z "$pmax" ] && pmax=$nsplit # same as number of files
6666

6767
# Set up exit trap
@@ -94,7 +94,7 @@ input="${inputs[0]}"
9494
export TIMEFORMAT=$'real %3R user %3U sys %3S' # default format in seconds
9595
$silent && export TIMEFORMAT='' # set to empty string
9696
$silent || echo "Running command: $cmd"
97-
$debug && {
97+
$verbose && {
9898
echo "Input file(s): ${inputs[*]}"
9999
echo "Output file: $output"
100100
}
@@ -226,7 +226,7 @@ avgtime() {
226226
END {print "user " real / NR "s user " user / NR "s sys " sys / NR "s"}
227227
'
228228
}
229-
$debug && {
229+
$verbose && {
230230
echo "Average split time"
231231
avgtime '^Copying slab'
232232
echo "Average command time"

0 commit comments

Comments
 (0)