what I'd like to do in Python is accept arguments of the following format:
script.py START | STOP | STATUS | MOVEABS <x> <y> | MOVEREL <x> <y>
So in other words,
- I don't want to deal with hyphens;
- I have multiple possibilities, ONE of which is required;
- Each is mutually exclusive;
- Some of the commands (E.G. moveabs and moverel) have additional required arguments, but these args and should not be present with any other argument.
Can this be done in python and would I use argparse or something else? Thanks.