code: def parse_known_args():
      
      parser = argparse.ArgumentParser()
      parser.add_argument('-V', '--version',
                          action='store_true',
                          dest='version',
                          help='Print the version number and exit')
      mutually_exclusive_group = parser.add_mutually_exclusive_group()
      mutually_exclusive_group.add_argument(
          '-v', '--verbose',
          action='store_true',
          help='Show verbose information.'
          ' Higher verbosity can be selected by --verbosity flag')
      parser.add_argument('-o', '--old',
                          type=str,
                          help='Old word to be replaced')
      parser.add_argument('-n', '--new', type=str, help='New replacement word')
      parser.add_argument('-d', '--dry-run', action='store_true', help='Dry Run')
  
      args, otherthings = parser.parse_known_args()
      return args, otherthings
docs: Parse command line arguments