My use case I am running a couple of python scripts in sequence using taskfile, i.e. with a single command. However, they require different arguments. Taskfile has the option to pass all cli arguments on to tasks, however for this to work, I would basically need to ignore all args that are not defined for that script.
Is there some way to ignore unrecognized/unknown arguments? In argparse there is this option:
My use case I am running a couple of python scripts in sequence using taskfile, i.e. with a single command. However, they require different arguments. Taskfile has the option to pass all cli arguments on to tasks, however for this to work, I would basically need to ignore all args that are not defined for that script.