#51 - Streamlined app version ad buildtime for revel app

This commit is contained in:
Jeevanandam M
2016-06-25 19:04:40 -07:00
parent 28c0df2ff3
commit 612de1d3a4
2 changed files with 8 additions and 3 deletions

View File

@@ -85,7 +85,8 @@ func parseRunArgs(args []string) *RunArgs {
// 1. revel run [import-path]
// 2. revel run [port]
// 3. revel run [run-mode]
if strings.Contains(args[0], "/") {
if strings.Contains(args[0], "/") ||
strings.Contains(inputArgs.ImportPath, "..") {
inputArgs.ImportPath = args[0]
} else if port, err := strconv.Atoi(args[0]); err == nil {
inputArgs.Port = port