Skip to content

Commit

Permalink
Added param to CLI arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
bcherrington committed Jun 7, 2015
1 parent 95a73ce commit ca5240a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kiba/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ def self.run(args)
puts 'Syntax: kiba your-script.etl'
exit(-1)
end
filename = args[0]
filename, *params = args[0]
script_content = IO.read(filename)
job_definition = Kiba.parse(script_content, filename)
job_definition = Kiba.parse(script_content, filename, *params)
Kiba.run(job_definition)
end
end
Expand Down

0 comments on commit ca5240a

Please sign in to comment.