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
|
usage
|
||||||
|
|
||||||
when /^-v$|^--version$/
|
when /^-v$|^--version$/
|
||||||
$stderr.puts "eplot version "+$Version
|
puts "eplot version "+$Version
|
||||||
$stderr.puts $licence
|
puts $licence
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
# ---- Do we create PNG output?
|
# ---- Do we create PNG output?
|
||||||
@ -321,8 +321,8 @@ class OptionController
|
|||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# ---- writes the usage message
|
# ---- writes the usage message
|
||||||
def usage
|
def usage
|
||||||
$stderr.printf "usage: %s [ options ]\n",$0
|
printf "usage: %s [ options ]\n",$0
|
||||||
$stderr.printf "\n%s\n",$help
|
printf "\n%s\n",$help
|
||||||
exit 0
|
exit 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user