I have searched the internet and I couldn't find if it is possible to make an argument with python argparser package that is optional but when it is choosen it needs aeguments.
For better understanding I will explain in code so you guys can understand easier.
My goal is to have a database with all my websites and apps I have registered in and store there the site or platform, mail, user and the password. And I wanted to create some optional arguments such as:
Python manageaccounts.py --add steam mail user pass
That is just an example but I think it makes it much more understandable. Basically Instead of "--add" I want to have like "--delete" and a "--change" argument as well. With that I want to say that I don t know how to make an argument optional that when it is choosen it requires another argument, in this case I choose "--add" and to add a new line to my database I need a "site" a "mail" "user" and "pass", and I want to make "--add" optional and when it is choosen to make site mail user and pass required
If anyone didn't understand what I want to know is to know how I can make an argument require another arguments.