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")
|
print("init Create a new project\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function version()
|
||||||
|
|
||||||
|
print("\n", "Version 1\n\n")
|
||||||
|
end
|
||||||
|
|
||||||
function main()
|
function main()
|
||||||
|
|
||||||
if (length(ARGS) == 2 && ARGS[1] == "init")
|
if (length(ARGS) == 2 && ARGS[1] == "init")
|
||||||
@ -99,6 +104,9 @@ function main()
|
|||||||
print("The directory: ", ARGS[2], " could not be created\n")
|
print("The directory: ", ARGS[2], " could not be created\n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
elseif (length(ARGS) == 1 && ARGS[1] == "-v")
|
||||||
|
version()
|
||||||
else
|
else
|
||||||
help()
|
help()
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user