Add command line switch to output warnings to stderr - close #26

This commit is contained in:
josh committed 2024-07-14 15:36:07 -04:00
1 parent 4ae5ab79b3
commit 2dd89445fc
5 files changed
+44 -16

No files matched your search

+2 -2
View File
@@ -31,10 +31,10 @@ class Propane
class << self
def run(input_file, output_file, log_file)
def run(input_file, output_file, log_file, options)
begin
grammar = Grammar.new(File.read(input_file))
generator = Generator.new(grammar, output_file, log_file)
generator = Generator.new(grammar, output_file, log_file, options)
generator.generate
rescue Error => e
$stderr.puts e.message