fixing new commit system
parent
8c1b7ba8b6
commit
f98ccf4767
|
@ -196,7 +196,7 @@ def main():
|
||||||
prog="Commit Helper",
|
prog="Commit Helper",
|
||||||
description="Help you make pretty commits :3")
|
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("-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", "--minor", action='store_true', default=False, required=False)
|
||||||
parser.add_argument("-M", "--major", 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):
|
if not (args.patch or args.minor or args.major):
|
||||||
try:
|
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)? ")
|
type = input("What kind of commit is this ((M)ajor, (m)inor, (p)atch)? ")
|
||||||
|
|
||||||
if type.startswith('M'):
|
if type.startswith('M'):
|
||||||
|
|
Loading…
Reference in New Issue