From 770df14bf6ef256c89a4eb62fcc72ff3b07ca5a7 Mon Sep 17 00:00:00 2001 From: Kutalmis Bercin Date: Thu, 23 Sep 2021 19:29:45 +0100 Subject: [PATCH] ENH: foamMonitor: modernise and refactor for POSIX compliance (#2202) ENH: add xrange option --- bin/foamMonitor | 125 +++++++++++++++++++++++++++++++----------------- 1 file changed, 82 insertions(+), 43 deletions(-) diff --git a/bin/foamMonitor b/bin/foamMonitor index a15bd5b168..5a4f736a0b 100755 --- a/bin/foamMonitor +++ b/bin/foamMonitor @@ -7,7 +7,7 @@ # \\/ M anipulation | #------------------------------------------------------------------------------- # Copyright (C) 2015 OpenFOAM Foundation -# Copyright (C) 2019 OpenCFD Ltd. +# Copyright (C) 2019-2021 OpenCFD Ltd. #------------------------------------------------------------------------------ # License # This file is part of OpenFOAM. @@ -34,35 +34,49 @@ # - requires gnuplot, gnuplot_x11 # #------------------------------------------------------------------------------ -usage() { - exec 1>&2 - while [ "$#" -ge 1 ]; do echo "$1"; shift; done +printHelp() { cat< -options: - -h | -help prints the usage - -i | -idle