From 62296cc84b20c3901a889803bd8c7a98821fdffc Mon Sep 17 00:00:00 2001 From: kimm310 Date: Sun, 20 Apr 2025 13:16:03 +0200 Subject: [PATCH] shows help text when there's no argument for git feature; changed help text for feature commits --- git_tool/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git_tool/__main__.py b/git_tool/__main__.py index 738100b..69b1c5e 100644 --- a/git_tool/__main__.py +++ b/git_tool/__main__.py @@ -12,13 +12,13 @@ from git_tool.ci.subcommands.feature_status import feature_status -app = typer.Typer(name="feature") # "git feature --help" does not work, but "git-feature --help" does +app = typer.Typer(name="feature", no_args_is_help=True) # "git feature --help" does not work, but "git-feature --help" does app.command(name="add", help="Stage files and associate them with the provided features.")(feature_add_by_add) app.command(name="add-from-staged", help="Associate staged files with features.")(features_from_staging_area) app.command(name="blame", help="Display features associated with file lines.")(feature_blame) app.command(name="commit", help="Associate an existing commit with one or more features.")(feature_commit) app.command(name="commit-msg", help="Generate feature information for the commit message.")(feature_commit_msg) -app.add_typer(feature_commits, name="commits", help="Find all commits that have feature information associated.") +app.add_typer(feature_commits, name="commits", help="Use with the subcommand 'list' or 'missing' to show commits with or without associated features.") app.command(name="info", help="Show information of a specific feature.")(inspect_feature) app.command(name="info-all", help="List all available features in the project.")(all_feature_info) app.command(name="pre-commit", help="Check if all staged changes are properly associated with features.")(feature_pre_commit)