aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test.py b/test.py
index 36506fa..0f84cea 100755
--- a/test.py
+++ b/test.py
@@ -4,7 +4,7 @@ import scilo
def main():
parser = argparse.ArgumentParser(description='Generate scientific workflow structure')
- parser.add_argument('-c', '--copy-only', action='store_true', required=False,
+ parser.add_argument('-c', '--copy-only', default=True, action='store_false', required=False,
help='Do not move original data')
parser.add_argument('-o', '--output-dir', type=str, required=True,
help='Where to store aggregated data, caches, results')
@@ -17,8 +17,7 @@ def main():
exit(1)
dataset = scilo.scilo(arguments.output_dir)
- for f in arguments.input_files:
- dataset.aggregate(f, arguments.copy_only)
+ dataset.aggregate(arguments.input_files, move=arguments.copy_only)
if __name__ == "__main__":
main()