diff options
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/pre_gen_project.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py index 85c171b..93f277e 100644 --- a/hooks/pre_gen_project.py +++ b/hooks/pre_gen_project.py @@ -1,3 +1,5 @@ +project_name = '{{ cookiecutter.project_name }}' + if '-' in project_name: print('ERROR: Project shortname cannot contain dashes, please use underscores') sys.exit(1) |