Merge pull request #8 from ernstki/print-dash-dash-help-to-stdout

Print '--help' and '--version' to stdout instead of stderr
This commit is contained in:
Christian Wolf 2020-08-05 20:15:16 +02:00 committed by GitHub
commit aa4d607f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
eplot
View File

@ -153,8 +153,8 @@ class OptionController
usage
when /^-v$|^--version$/
$stderr.puts "eplot version "+$Version
$stderr.puts $licence
puts "eplot version "+$Version
puts $licence
exit 0
# ---- Do we create PNG output?
@ -321,8 +321,8 @@ class OptionController
# --------------------------------------------------------------------------
# ---- writes the usage message
def usage
$stderr.printf "usage: %s [ options ]\n",$0
$stderr.printf "\n%s\n",$help
printf "usage: %s [ options ]\n",$0
printf "\n%s\n",$help
exit 0
end