I want to write a function with an argument which can be either:
- a single argument
- a list of arguments
E.g. symlink(target_or_targets, destination)
, which could be called as either:
symlink(target, destination)
symlink([target1, target2], destination)
How do I test for a single argument, and convert it into a list with one item?