Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-420

Click 7 replaces _ in commands with -

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None

      From the click 7 changelog at http://click.palletsprojects.com/en/7.x/changelog/:

      > Subcommands that are named by the function now automatically have the underscore replaced with a dash. If you register a function named my_command it becomes my-command in the command line interface.

      This affects many LB commands in manage.py, we should either update our documentation, test scripts, and deploy code to reflect this change, or force the command names to use _ or change the command names to not have _ in them

      This automatic behaviour can be overwritten by specifying @click.command(name='init_db') directly in the command decorator.

            Unassigned Unassigned
            alastairp Alastair Porter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package