`hanami new` changes hyphens to underscores
Author: unikitty37Created Apr 18, 2025Updated Apr 30, 2025
Labelseasy
When I run hanami new example-project, Hanami changes the hyphen to an underscore. This means Hanami projects don't fit with the naming conventions in use here. Even if Hanami needs an underscore rather than a hyphen in its internal name (I'm not sure if this is related to #129) it shouldn't create the project in a folder with a different name to the one it's given; the person running the hanami command shouldn't have their agency taken away like this.
Expected behaviour: the project is created in the example-project folder; if the internal name needs to be example_project, a warning is emitted to inform the user of this.
Actual behaviour: the project is created in the example_project folder.
Source: hanami/hanami