#!/usr/local/bin/julia

using ArgParse

function transcribe(DNAstring::String)
	RNAstring = replace(DNAstring, Pair('T','U'))
end

function main(args)
	# Argument parsing
	configs = ArgParseSettings()

	add_arg_group!(configs, "Options:")
	@add_arg_table! configs begin
		"--input", "-i"
			help	 = "Input filename"
			action	 = :store_arg
			arg_type = String
		"--output", "-o"
			help	 = "Output filename"
			action	 = :store_arg
			arg_type = String
		end
	# Store arguments to variables
	parsed_args = parse_args(args, configs)
	infile      = parsed_args["input"]
	outfile     = parsed_args["output"]

	# Read file and count nucleotides 
	DNAstring = open(f->read(f, String), infile)
	@show RNAstring = transcribe(DNAstring)
	open(f->write(f, "$RNAstring"), outfile, "w+")
	
end

main(ARGS)
