
import argparse

from s3imageresize import resize_image_folder

parser = argparse.ArgumentParser(description='Upload a file to Amazon S3 and rotate old backups.')
parser.add_argument('bucket', help="Name of the Amazon S3 bucket to save the backup file to.")
parser.add_argument('prefix', help="The prefix to add before the filename for the key.")
parser.add_argument('psize', help="Path to the file to upload.")
args = parser.parse_args()

resize_image_folder(args.bucket, args.prefix, args.psize)


import argparse

from s3imageresize import resize_image_folder

parser = argparse.ArgumentParser(description='Resize all images stored in a folder on Amazon S3.')
parser.add_argument('bucket', help="Name of the Amazon S3 bucket to save the backup file to.")
parser.add_argument('prefix', help="The prefix to add before the filename for the key.")
parser.add_argument('width', help="Maximum width of the image.")
parser.add_argument('height', help="Maximum height of the image.")
args = parser.parse_args()

resize_image_folder(args.bucket, args.prefix, (args.width,args.height))

Fix parameter descriptions and change size to individual width and height parameters
Fix parameter descriptions and change size to individual width and height parameters

  
  import argparse
  
  from s3imageresize import resize_image_folder
  
- parser = argparse.ArgumentParser(description='Upload a file to Amazon S3 and rotate old backups.')
+ parser = argparse.ArgumentParser(description='Resize all images stored in a folder on Amazon S3.')
  parser.add_argument('bucket', help="Name of the Amazon S3 bucket to save the backup file to.")
  parser.add_argument('prefix', help="The prefix to add before the filename for the key.")
- parser.add_argument('psize', help="Path to the file to upload.")
+ parser.add_argument('width', help="Maximum width of the image.")
+ parser.add_argument('height', help="Maximum height of the image.")
  args = parser.parse_args()
  
- resize_image_folder(args.bucket, args.prefix, args.psize)
+ resize_image_folder(args.bucket, args.prefix, (args.width,args.height))
  
Fix parameter descriptions and change size to individual width and height parameters
## Code Before:

import argparse

from s3imageresize import resize_image_folder

parser = argparse.ArgumentParser(description='Upload a file to Amazon S3 and rotate old backups.')
parser.add_argument('bucket', help="Name of the Amazon S3 bucket to save the backup file to.")
parser.add_argument('prefix', help="The prefix to add before the filename for the key.")
parser.add_argument('psize', help="Path to the file to upload.")
args = parser.parse_args()

resize_image_folder(args.bucket, args.prefix, args.psize)

## Instruction:
Fix parameter descriptions and change size to individual width and height parameters
## Code After:

import argparse

from s3imageresize import resize_image_folder

parser = argparse.ArgumentParser(description='Resize all images stored in a folder on Amazon S3.')
parser.add_argument('bucket', help="Name of the Amazon S3 bucket to save the backup file to.")
parser.add_argument('prefix', help="The prefix to add before the filename for the key.")
parser.add_argument('width', help="Maximum width of the image.")
parser.add_argument('height', help="Maximum height of the image.")
args = parser.parse_args()

resize_image_folder(args.bucket, args.prefix, (args.width,args.height))
