Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .gitignore
Empty file.
19 changes: 19 additions & 0 deletions converter/converter.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require 'optparse'

options = {}
OptionParser.new do |parser|
parser.on('--output=OUTPUT',
'The output can be json, rss or atom file extension') do |output|
options[:output] = output
end

parser.on('--input=INPUT', 'Enter the path to the file') do |input|
options[:input] = input
end

parser.on('--sort[=asc]', 'Enter asc or desc') do |sort|
options[:sort] = sort
end
end.parse!

puts options
Empty file added converter/lib/main.rb
Empty file.
Empty file added converter/source.xml
Empty file.