you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 11 months ago

https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_mutually_exclusive_group

However I've never had to use that feature. Like I said it can make sense in specific contexts but it is a pretty strong indicator that you have built in a CLI antipattern or too much complexity.

  • source
  • parent