Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit cad661f

Browse files
committed
allow package name override in new
1 parent abd9395 commit cad661f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dls_python3_skeleton/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def replace_text(text: str) -> str:
127127
def new(args):
128128
path: Path = args.path
129129

130-
package = path.name
130+
package = args.package or path.name
131131
valid = VALID_PKG.match(package)
132132
assert valid, f"'{package}' is not a valid python package name"
133133

0 commit comments

Comments
 (0)