fixing new commit system

main
Brett 2024-09-26 19:58:00 -04:00
parent 8c1b7ba8b6
commit f98ccf4767
1 changed files with 5 additions and 2 deletions

View File

@ -196,7 +196,7 @@ def main():
prog="Commit Helper",
description="Help you make pretty commits :3")
parser.add_argument("action", required=False)
parser.add_argument("action", nargs='?', default=None)
parser.add_argument("-p", "--patch", action='store_true', default=False, required=False)
parser.add_argument("-m", "--minor", action='store_true', default=False, required=False)
parser.add_argument("-M", "--major", action='store_true', default=False, required=False)
@ -225,6 +225,9 @@ def main():
if not (args.patch or args.minor or args.major):
try:
if args.action is not None:
type = args.action
else:
type = input("What kind of commit is this ((M)ajor, (m)inor, (p)atch)? ")
if type.startswith('M'):