Skip to content
Myr

Show options before commands

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 9e42514 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/_optparse.py+1 added-1 removed
700 unmodified lines
701 def format_option_help(self, formatter):702 rv = OptionParser.format_option_help(self, formatter)703 extra_help = self.__ctx.command._format_extra_help(self.__ctx)704 if extra_help:705 rv = '%s\n\n%s' % (extra_help, rv)705 rv = '%s\n%s' % (rv, extra_help)706 return rv707708 def error(self, msg):709 raise UsageError(msg, self.__ctx)