mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fix fn required arguments issue (#572)
This commit is contained in:
committed by
Travis Reeder
parent
ad0e54ae06
commit
09960eaec5
@@ -91,7 +91,7 @@ func parseArgs(c *cli.Context) ([]string, []string) {
|
|||||||
for _, arg := range args {
|
for _, arg := range args {
|
||||||
if strings.HasPrefix(arg, "[") {
|
if strings.HasPrefix(arg, "[") {
|
||||||
optArgs = append(optArgs, arg)
|
optArgs = append(optArgs, arg)
|
||||||
} else {
|
} else if strings.Trim(arg, " ") != "" {
|
||||||
reqArgs = append(reqArgs, arg)
|
reqArgs = append(reqArgs, arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user