multiple-arguments

Using the same option multiple times in Python's argparse

Using the same option multiple times in Python's argparse Question: I’m trying to write a script that accepts multiple input sources and does something to each one. Something like this ./my_script.py -i input1_url input1_name input1_other_var -i input2_url input2_name input2_other_var -i input3_url input3_name # notice inputX_other_var is optional But I can’t quite figure out how to …

Total answers: 4