Skip to content

Commit 5516d09

Browse files
committed
fix(main): set default value for description argument in commit parser
1 parent f231703 commit 5516d09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

penify_hook/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def main():
7777
commit_parser = subparsers.add_parser("commit", help="Generate smart commit messages using local-LLM(no login required).", description=commit_parser_description, formatter_class=argparse.RawDescriptionHelpFormatter)
7878
commit_parser.add_argument("-m", "--message", required=False, help="Commit with contextual commit message.", default="N/A")
7979
commit_parser.add_argument("-e", "--terminal", action="store_true", help="Open edit terminal before committing.")
80-
commit_parser.add_argument("-d", "--description", action="store_false", help="It will generate commit message with title and description.")
80+
commit_parser.add_argument("-d", "--description", action="store_false", help="It will generate commit message with title and description.", default=False)
8181

8282
# Subcommand: config
8383
config_parser = subparsers.add_parser("config", help="Configure local-LLM and JIRA.")
@@ -156,7 +156,7 @@ def main():
156156
# For commit, token is now optional - some functionality may be limited without it
157157
open_terminal = args.terminal
158158
generate_description = args.description
159-
159+
print(f"Generate Description: {generate_description}")
160160
# Try to get from config
161161
llm_config = get_llm_config()
162162
llm_model = llm_config.get('model')

0 commit comments

Comments
 (0)