Fix option parser

This commit is contained in:
Dzmitry Plashchynski
2016-01-20 20:41:26 +02:00
parent acbfea2308
commit 16ca450033
4 changed files with 25 additions and 10 deletions

View File

@@ -122,7 +122,7 @@ module Crono
def parse_options(argv)
@argv = OptionParser.new do |opts|
opts.banner = "Usage: crono [options] start|stop|restart|run"
opts.banner = "Usage: crono [options] [start|stop|restart|run]"
opts.on("-C", "--cronotab PATH", "Path to cronotab file (Default: #{config.cronotab})") do |cronotab|
config.cronotab = cronotab
@@ -136,7 +136,7 @@ module Crono
config.pidfile = pidfile
end
opts.on("--piddir PATH", "Path to piddir (Default: #{config.piddir})") do |piddir|
opts.on("-D", "--piddir PATH", "Path to piddir (Default: #{config.piddir})") do |piddir|
config.piddir = piddir
end

View File

@@ -1,3 +1,3 @@
module Crono
VERSION = '1.0.0.pre2'
VERSION = '1.0.0.pre3'
end