mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
#51 - Streamlined app version ad buildtime for revel app
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user