def format_option_strings(self, option):
if option.takes_value():<EOL><INDENT>metavar = option.metavar or option.dest.upper()<EOL>short_opts = [self._short_opt_fmt % (sopt, metavar)<EOL>for sopt in option._short_opts]<EOL>long_opts = [self._long_opt_fmt % (lopt, metavar)<EOL>for lopt in option._long_opts]<EOL><DEDENT>else:<EOL><INDENT>short_opts = option._short_opts<EOL>long_opts = option._long_opts<EOL><DEDENT>if self.short_first:<EOL><INDENT>opts = short_opts + long_opts<EOL><DEDENT>else:<EOL><INDENT>opts = long_opts + short_opts<EOL><DEDENT>return "<STR_LIT:U+002CU+0020>".join(opts)<EOL>
Return a comma-separated list of option strings & metavariables.