Options That Conflict

Let's learn how to deal with the options that conflict.

What to do when options conflict?

What should we do if we have options that conflict with each other? A common example would be running our application in verbose mode versus quiet mode. We can run it in either mode, but not both. How do we prevent the user from running it that way though? It’s actually quite easy via the mutually_exclusive_group function.

Get hands-on with 1400+ tech skills courses.