Skip to content
Myr

document command name replacing "_" with "-"

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

authored by J. Javier Maestro · committed by David Lord · parent 98a55ab · Browse files · 1 file+6 added−0 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:docs/upgrading.rst+6 added
4 unmodified lines
5this is not entirely possible. In case we need to break backwards6compatibility this document gives you information about how to upgrade or7handle backwards compatibility properly.89.. _upgrade-to-7.0:1011Upgrading to 7.012----------------13Click 7.0 changed the default behaviour of subcommands. Subcommands that are named by the function now automatically have the underscore replaced with a dash. So now, if you register a function named `my_command` it becomes `my-command` in the command line interface by default. Thus, you can still use underscores by specifying the command names explicitly or use a `Command` subclass that doesn't have the new behavior.1415.. _upgrade-to-3.2:1617Upgrading to 3.218----------------
88 unmodified lines