optparse.OptionParser._match_long_opt

OptionParser._match_long_opt(opt : string) → string[source]

Determine which long option string ‘opt’ matches, ie. which one it is an unambiguous abbreviation for. Raises BadOptionError if ‘opt’ doesn’t unambiguously match any long option string.