code: def remove_args(parser):
      ''' Remove custom arguments from the parser '''
  
      arguments = []
      for action in list(parser._get_optional_actions()):
          if '--help' not in action.option_strings:
              arguments += action.option_strings
  
      for arg in arguments:
          if arg in sys.argv:
              sys.argv.remove(argf remove_args(parser):
      ''' Remove custom arguments from the parser '''
  
      arguments = []
      for action in list(parser._get_optional_actions()):
          if '--help' not in action.option_strings:
              arguments += action.option_strings
  
      for arg in arguments:
          if arg in sys.argv:
              sys.argv.remove(arg)
docs: Remove custom arguments from the parser