bin/dftsg in dftsg-0.1.1 vs bin/dftsg in dftsg-0.1.2

- old
+ new

@@ -5,25 +5,21 @@ require_relative '../lib/FormGenerator' input = nil -program :version, '0.0.1' -program :description, 'Validates Swift Style Guide' +program :version, '0.1.1' +program :description, 'Validates Swift files based on Dafiti\'s Swift Style Guide' command :gen do |c| - c.syntax = 'dftsg gen directory/with/Swift/files' - c.summary = '' - c.description = '' - c.example 'description', 'dftsg input ' - c.option '--output STRING', 'Optional output directory' + c.syntax = 'dftsg gen directory/with/Swift/files [--output <outputdirectory>]' + c.summary = 'Generates analysis report' + c.description = 'Generates analysis report' + c.option '--output PATH', 'Optional output directory' c.action do |args, options| if args.count == 0 - puts - puts "You must provide the directory of Swift files to analyze:" - puts - puts "\t dftsg gen directory/with/Swift/files" - puts + say_error "You must provide the directory of Swift files to analyze:" + say_error "\t dftsg gen directory/with/Swift/files" else input = args.first output = options.output formGenerator = FormGenerator.new(input, output) \ No newline at end of file