bin/yaml-cv in yaml-cv-0.1.0 vs bin/yaml-cv in yaml-cv-0.1.1

- old
+ new

@@ -22,11 +22,11 @@ def self.parser OptionParser.new do |opts| - opts.banner = "Usage: yaml-cv <path to yml file> [options]" + opts.banner = "Usage: yaml-cv <yml file> [options]" opts.on("-w", "--watch", "Watch the input file for changes and automatically regenerate the CV.") do |watch| @@options.watch = watch end @@ -42,11 +42,11 @@ end opts.on_tail("-h", "--help", "Print this message and exit.") do puts opts - exit + exit 1 end end end @@ -57,10 +57,13 @@ parser.parse!(args) @@options.file_name = ARGV.pop - raise "Please specify an input yml file." unless @@options.file_name + if !@@options.file_name + puts self.parser + exit 1 + end end def self.options @@options \ No newline at end of file