Commit 2b4ad281 authored by Konstantine's avatar Konstantine 💮

added version output flag

parent cbdf6b7a
......@@ -2,7 +2,7 @@ require "csv"
require "./cycling/**"
module Cycling
VERSION = "0.3.1"
VERSION = "0.3.2"
# Initializing
Cycling::Options
......
......@@ -11,12 +11,15 @@ class Cycling::Options
exit
end
# Specifiy the file you wish to save data to as opposed to data.csv
p.on("-v", "--version", "Prints Version of program to terminal") do
puts VERSION
exit
end
p.on("-f PATH", "--file PATH", "Choose file to write to") do |new_path|
ENV["file"] = new_path.empty? ? "data.csv" : new_path
end
# For importing AAT GPX file
p.on("-a FILE", "--aat FILE", "Put path to AAT data file to input") do |aat_file|
# if aat_file.empty?
# raise "File Needs to be specified... Please try again..."
......@@ -25,7 +28,6 @@ class Cycling::Options
exit
end
# Get help for this program
p.on("-h", "--help", "Show this help") do
puts p
exit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment