[cli] renamed init-project to init

This commit is contained in:
Maxime Alves LIRMM 2020-08-05 12:30:11 +02:00
parent 7ff8d803ee
commit 446db4ee27
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ def update_db(domains):
@click.argument('project') @click.argument('project')
@click.option('--repo', default=None) @click.option('--repo', default=None)
@cli.command() @cli.command()
def init_project(project, repo): def init(project, repo):
if not re.match('^[a-z0-9_]+$', project, re.I): if not re.match('^[a-z0-9_]+$', project, re.I):
click.echo('Project name must match "^[a-z0-9_]+$", retry.', err=True) click.echo('Project name must match "^[a-z0-9_]+$", retry.', err=True)
sys.exit(1) sys.exit(1)