#!/usr/bin/env ruby require_relative '../lib/dir_archiver' if ARGV.empty? OptParser.parse(%w[--help]) end include DirArchiver # Now we are ready to take the order # Show help if user forgot to type anything opts = OptParser.parse(ARGV) DirArchiver::archive(opts.input_dir, opts.depth, opts.seperator, opts.output_dir, opts.commit)