Skip to content

Commit fcea9a8

Browse files
authored
feat: display help page in case of missing arguments for sub-commands (#335)
* feat: display help page in case of missing arguments for the create, buld and test sub-commands * bump CLI to 1.28.0
1 parent 75ea3f3 commit fcea9a8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bases/polylith/cli/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,22 @@
1212
create.app,
1313
name="create",
1414
help="Commands for creating a workspace, bases, components and projects.",
15+
no_args_is_help=True,
1516
)
1617

1718

1819
app.add_typer(
1920
build.app,
2021
name="build",
2122
help="For Package & Dependency Management tools without support for plugins or build hooks.",
23+
no_args_is_help=True,
2224
)
2325

2426
app.add_typer(
2527
test.app,
2628
name="test",
2729
help="Commands for tests.",
30+
no_args_is_help=True,
2831
)
2932

3033

projects/polylith_cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "polylith-cli"
3-
version = "1.27.1"
3+
version = "1.28.0"
44
description = "Python tooling support for the Polylith Architecture"
55
authors = ['David Vujic']
66
homepage = "https://davidvujic.github.io/python-polylith-docs/"

0 commit comments

Comments
 (0)