Open nfrasser opened 4 months ago
I like this. Was not aware argparse had this option. We need to make sure this doesn't cause any unexpected errors and is compatible with some pending unreleased updates though.
This will be a welcome improvement! On several systems, I have run into the "too many command-line arguments" limitation, and there is no other solution than splitting the dataset in several batches to pick separately (pretty annoying to do, and it makes the job graph look more complicated than it really is).
Fixes #47
Use
fromfile_prefix_chars
option in ArgumentParser to allow specifying a long list of arguments in a file.Example invocation before (still supported):
Example invocation after:
Where
mics.txt
has the following contents:This would be really beneficial to have when processing thousands of micrographs on systems that have a limit on the maximum number of allowed command-line arguments. It would also be good for debugging purposes e.g., show full command used by CryoSPARC Topaz wrapper instead of a truncated command that excludes the paths for legibility.
@tbepler please let me know if you have any feedback!