fn: fix precedence of path choice during route creation (#427)

Fixes #413
This commit is contained in:
C Cirello
2016-12-13 19:52:54 +01:00
committed by GitHub
parent 2af84c77b4
commit c37c754e0b

View File

@@ -297,7 +297,7 @@ func (a *routesCmd) create(c *cli.Context) error {
if ff.Timeout != nil {
timeout = *ff.Timeout
}
if ff.Path != nil {
if route == "" && ff.Path != nil {
route = *ff.Path
}
}