From 6c448581739c8ab2c1dc90e4b91a8dab3235dfab Mon Sep 17 00:00:00 2001 From: mollusk Date: Wed, 7 Nov 2018 02:35:39 -0700 Subject: [PATCH] add version arg --- src/jprog.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/jprog.jl b/src/jprog.jl index 928e82e..07f425d 100755 --- a/src/jprog.jl +++ b/src/jprog.jl @@ -82,6 +82,11 @@ function help() print("init Create a new project\n") end +function version() + + print("\n", "Version 1\n\n") +end + function main() if (length(ARGS) == 2 && ARGS[1] == "init") @@ -99,6 +104,9 @@ function main() print("The directory: ", ARGS[2], " could not be created\n") end end + + elseif (length(ARGS) == 1 && ARGS[1] == "-v") + version() else help() end