2

My executable has two modes of operation which are selectable via --mode=foo or --mode=bar. If mode=foo, then --abc option should be required and --xyz should not be specified. If mode=bar, then --xyz option should be required and --abc should not be specified. What is the correct way to code that?

Paul Grinberg
  • 1,184
  • 14
  • 37

0 Answers0