mirror of
https://github.com/chriswolfvision/eplot.git
synced 2025-05-06 06:46:43 +08:00
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:
commit
aa4d607f05
8
eplot
8
eplot
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user