Skip to content

Commit

Permalink
Fixed redeclared CLI flag (#100)
Browse files Browse the repository at this point in the history
-p is already used for --port with `sam local start-api`.
  • Loading branch information
PaulMaddox authored and sanathkr committed Aug 29, 2017
1 parent 0d57b5e commit 89ca4af
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,12 @@ func main() {
"you must mount the path where the SAM file exists on the docker machine and modify this value to match the remote machine.",
EnvVar: "SAM_DOCKER_VOLUME_BASEDIR",
},
cli.BoolFlag {
Name: "skip-pull-image, p",
Usage: "Optional. Specify whether SAM should skip pulling down the latest Docker image. Default is false.",
cli.BoolFlag{
Name: "skip-pull-image",
Usage: "Optional. Specify whether SAM should skip pulling down the latest Docker image. Default is false.",
EnvVar: "SAM_SKIP_PULL_IMAGE",
},

},
},
},
cli.Command{
Name: "invoke",
Expand Down Expand Up @@ -141,12 +140,11 @@ func main() {
"you must mount the path where the SAM file exists on the docker machine and modify this value to match the remote machine.",
EnvVar: "SAM_DOCKER_VOLUME_BASEDIR",
},
cli.BoolFlag {
Name: "skip-pull-image, p",
Usage: "Optional. Specify whether SAM should skip pulling down the latest Docker image. Default is false.",
cli.BoolFlag{
Name: "skip-pull-image",
Usage: "Optional. Specify whether SAM should skip pulling down the latest Docker image. Default is false.",
EnvVar: "SAM_SKIP_PULL_IMAGE",
},

},
},
cli.Command{
Expand Down

0 comments on commit 89ca4af

Please sign in to comment.