Is there a way to define command line arguments in Python, but the number of those argument changes?
For example I have this list:
arguments = [arg1, arg2, arg3]
My script would be invoked from another place like this:
python3 python_script.py arg1 arg2 arg3
But, the number of arguments could change:
python3 python_script.py arg1 arg2 arg3 arg4 arg5
So, is there a way to make sure that array is extendable?
Thank you in advance!