Permalink
Browse files

Make sure overwrite flag is actually valid

Previously, the flag could never have been set to true.
  • Loading branch information...
1 parent 2e59ae5 commit c82ff3f1fe0961dfeb63ff04c099a15a9deb6b96 @henrinormak henrinormak committed May 25, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 main.go
View
@@ -177,7 +177,7 @@ func main() {
})
app.Command("load", "Load a table dump from S3 or file to a DynamoDB table", func(cmd *cli.Cmd) {
- cmd.Spec = "[-mpw] (--filename | --stdin | (--s3-bucket --s3-prefix)) TABLENAME"
+ cmd.Spec = "[-mpw] [--allow-overwrite] (--filename | --stdin | (--s3-bucket --s3-prefix)) TABLENAME"
action := &loader{
tableName: cmd.StringArg("TABLENAME", "", "Table name to load into"),
allowOverwrite: cmd.BoolOpt("allow-overwrite", false, "Set to true to overwrite any existing rows"),

0 comments on commit c82ff3f

Please sign in to comment.