def get_settings():
  ''' Return command-line settings '''
  parser = argparse.ArgumentParser(description='Filter text corpus by date range. Only updates the metadata file.')
  parser.add_argument('-i', dest='input', required=True, help='Input CSV of metadata describing files')
  parser.add_argument('-o', dest='output', required=True,
                   help='Output CSV for filtered results')
  parser.add_argument('-s', '--start', dest='start', help='Start date, YYYY-MM-DD format')
  parser.add_argument('-e', '--end', dest='end', help='End date, YYYY-MM-DD format')
  return parser.parse_args()