Closed
Description
Description
Custom command names and aliases, defined via MANAGEMENT_COMMANDS_PATHS
and MANAGEMENT_COMMANDS_ALIASES
dictionaries, settings don't necessarily have to be Python identifiers as they don't refer to Python modules. Including hyphens imitating spaces would allow the creation of more human-readable names and aliases.
For example, instead of fullcheck
, one could define full-check
.
Suggested Solution
Command names/aliases are validated using a helper function:
django-management-commands/src/management_commands/conf.py
Lines 10 to 11 in 1558c0f
It can be extended to return True
for strings containing hyphens.
Terms
- I have read and followed the project's Code of Conduct and Contributing Guide.
- I have checked that this issue is not a duplicate.