I am trying to make conditional argument parsing. The condition is as follows :
- First argument is required and here user has two options to enter for instance "random" and "collection". User can enter random or collection as first argument.
-> IF AND ONLY IF user passes "random" as first argument then user must pass two more arguments as "tag1" and "tag2"
-> IF AND ONLY IF user passes "collection" as first argument then user must pass only one more argument which is "collection_id"
Here we can see that the second argument(s) are depending on the first one. Can anyone please guide me that how can I do that?