From f6032cbb60983cb36a1f45d284178d8dbc1c0298 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 16 Jan 2013 08:26:50 -0500 Subject: Fix argparse calls to better handle command line requests --- test.py | 5 ++--- 1 file 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() -- cgit