add version arg
This commit is contained in:
parent
361d4110d2
commit
6c44858173
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user