title: How do I check for a particular subparser?
body: <p>How do I check for a particular subparser?</p>
  
  <pre><code>import argparse
  if __name__ == "__main__":
      mainparser = argparse.ArgumentParser()
      submainadder = mainparser.add_subparsers(title='subcommands')
      parser_ut = submainadder.add_parser('unittest')
      stuff = mainparser.parse_args()
      # if 'unittest' was selected:
      #     do_things()
  </code></pre>