mirror of
https://github.com/chriswolfvision/eplot.git
synced 2025-05-06 06:46:43 +08:00
Print '--version', '--help' to stdout instead
This commit is contained in:
parent
8536c767fc
commit
11cf7ade08
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