lib/lrama/option_parser.rb in lrama-0.5.7 vs lib/lrama/option_parser.rb in lrama-0.5.8

- old
+ new

@@ -59,11 +59,10 @@ o.on('-S', '--skeleton=FILE', 'specify the skeleton to use') {|v| @options.skeleton = v } o.on('-t', 'reserved, do nothing') { } o.separator '' o.separator 'Output:' o.on('-H', '--header=[FILE]', 'also produce a header file named FILE') {|v| @options.header = true; @options.header_file = v } - o.on('-h=[FILE]', 'also produce a header file named FILE (deprecated)') {|v| @options.header = true; @options.header_file = v } o.on('-d', 'also produce a header file') { @options.header = true } o.on('-r', '--report=THINGS', Array, 'also produce details on the automaton') {|v| @report = v } o.on('--report-file=FILE', 'also produce details on the automaton output to a file named FILE') {|v| @options.report_file = v } o.on('-o', '--output=FILE', 'leave output to FILE') {|v| @options.outfile = v } o.on('--trace=THINGS', Array, 'also output trace logs at runtime') {|v| @trace = v } @@ -72,10 +71,10 @@ o.separator 'Error Recovery:' o.on('-e', 'enable error recovery') {|v| @options.error_recovery = true } o.separator '' o.separator 'Other options:' o.on('-V', '--version', "output version information and exit") {|v| puts "lrama #{Lrama::VERSION}"; exit 0 } - o.on('--help', "display this help and exit") {|v| puts o; exit 0 } + o.on('-h', '--help', "display this help and exit") {|v| puts o; exit 0 } o.separator '' o.parse!(argv) end end