Commit 20b9537e authored by Vitaly Lipatov's avatar Vitaly Lipatov

ercat: add --quiet support

parent 14c85d0a
...@@ -75,6 +75,7 @@ progname="${0##*/}" ...@@ -75,6 +75,7 @@ progname="${0##*/}"
Usage="Usage: $progname [options] file(s)..." Usage="Usage: $progname [options] file(s)..."
Descr="ercat - universal file uncompressor" Descr="ercat - universal file uncompressor"
quiet=
cmd=$1 cmd=$1
# Just printout help if run without args # Just printout help if run without args
...@@ -89,6 +90,11 @@ case $cmd in ...@@ -89,6 +90,11 @@ case $cmd in
phelp phelp
exit exit
;; ;;
-q|--quiet) # HELPOPT: be silent
quiet=--quiet
shift
cmd=$1
;;
-v|--version) # HELPOPT: print version -v|--version) # HELPOPT: print version
print_version print_version
exit exit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment