From f9fe59371d54d07d55eb6ed4dcdba85ac3fdd61b Mon Sep 17 00:00:00 2001
From: Benjamin Bertrand <benjamin.bertrand@esss.se>
Date: Fri, 30 Nov 2018 16:15:59 +0100
Subject: [PATCH] Dash changed to underscore in flask commands

Linked to click update to 7.x

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.

JIRA INFRA-687
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d7220b3..3daf9a4 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ db: ## start postgres and redis for development
 
 init_db: ## initialize the dev database
 	docker-compose run --rm web flask db upgrade head
-	docker-compose run --rm web flask create_defaults
+	docker-compose run --rm web flask create-defaults
 
 upgrade_db: ## upgrade the dev database
 	docker-compose run --rm web flask db upgrade head
-- 
GitLab