Skip to content

Commit

Permalink
Add sql_output as required argument
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed May 15, 2023
1 parent ab7f75c commit cbe8bee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/swap_filesets.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,14 @@ def main(argv):
parser = argparse.ArgumentParser()
parser.add_argument('old_object', help='Object:ID where Object is Screen, Plate, Image, Fileset')
parser.add_argument('new_object', help='Object:ID where Object is Screen, Plate, Image, Fileset')
parser.add_argument('sql_output', help='File path to output sql commands')
parser.add_argument("--report", action="store_true", help="Print logs")
parser.add_argument("--dry-run", action="store_true", help="Don't save any changes")
args = parser.parse_args(argv)
old_object = args.old_object
new_object = args.new_object

sql_filename = f"fileset_swap_{old_object}.sql"
sql_filename = args.sql_output
print("SQL writing to " + sql_filename)

with cli_login() as cli:
Expand Down

0 comments on commit cbe8bee

Please sign in to comment.