Fix some things in dreport
The version command for dreport doesn't do anything
and so this commit removes it.
Additionally I was having trouble with --quiet and
--verbose. After enough squinting one can see that
a different dash character was being used in the
original code, likely these never worked.
Fixes openbmc/phosphor-debug-collector#18
Change-Id: I86eb58e848790122f2c23841de3c39e18acd7d0b
Signed-off-by: Matt Fischer <matthew.fischer@hpe.com>
diff --git a/tools/dreport.d/dreport b/tools/dreport.d/dreport
index 9dee258..f5c7fb1 100755
--- a/tools/dreport.d/dreport
+++ b/tools/dreport.d/dreport
@@ -30,7 +30,6 @@
Report will be truncated in case size exceeds
this limit. Default size is unlimited.
-v, —-verbose Increase logging verbosity.
- -V, --version Output version information.
-q, —-quiet Only log fatal errors to stderr
-h, —-help Display this help and exit.
EOF
@@ -298,8 +297,8 @@
fi
}
-TEMP=`getopt -o n:d:i:t:s:p:vVqh \
- --long name:,dir:,dumpid:,type:,size:,path:,verbose,version,quiet,help \
+TEMP=`getopt -o n:d:i:t:s:p:vqh \
+ --long name:,dir:,dumpid:,type:,size:,path:,verbose,quiet,help \
-- "$@"`
if [ $? -ne 0 ]
@@ -331,12 +330,10 @@
-p|--path)
optional_path=$2
shift 2 ;;
- -v|—-verbose)
+ -v|--verbose)
verbose=$TRUE
shift ;;
- -V|--version)
- shift ;;
- -q|—-quiet)
+ -q|--quiet)
quiet=$TRUE
shift ;;
-h|--help)