diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-01-16 08:26:50 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-01-16 08:26:50 -0500 |
commit | f6032cbb60983cb36a1f45d284178d8dbc1c0298 (patch) | |
tree | 822f83972f66f9bc38d786ef3b359dcb0dea429f | |
parent | 6bcd3f0d84a38d101209c78dca5e1ebe0491410b (diff) | |
download | scilo-f6032cbb60983cb36a1f45d284178d8dbc1c0298.tar.gz |
Fix argparse calls to better handle command line requests
-rwxr-xr-x | test.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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() |