Merge pull request #112 from mironal/add-version-option

add support --version option
This commit is contained in:
Yonas Kolb authored and GitHub committed 2017-10-27 23:17:05 +02:00
commit 53e7b2dee9
1 file changed
+3 -1
+3 -1
View File
@@ -15,6 +15,8 @@ import ProjectSpec
import JSONUtilities
import Rainbow
let version = "1.3.0"
func generate(spec: String, project: String) {
let specPath = Path(spec).normalize()
@@ -58,4 +60,4 @@ command(
Option<String>("spec", "project.yml", flag: "s", description: "The path to the spec file"),
Option<String>("project", "", flag: "p", description: "The path to the folder where the project should be generated"),
generate)
.run()
.run(version)