mirror of
https://github.com/chriswolfvision/eplot.git
synced 2025-05-05 22:31:13 +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
|
||||
|
||||
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