You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Main.py
+33-12Lines changed: 33 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
DEPOT=""
8
8
parser=optparse.OptionParser()
9
9
parser.add_option("-o", dest="output", default="Gource.log",help="Where to store the output file")
10
+
parser.add_option("-c", dest="captions", default="", help="Caption file (if any)\nCaptions will be the commit messages")
10
11
(options, args) =parser.parse_args()
11
12
12
13
ifnotlen(args)==1:
@@ -23,6 +24,13 @@
23
24
except:
24
25
print(colorama.Fore.RED+"Check if {} is a correct accessible path, and that I have perms to write to it..".format(options.output)+colorama.Fore.RESET)
25
26
sys.exit(1)
27
+
if(options.captions):
28
+
try: #Idiot Proofing..
29
+
a=open(options.captions, 'w')
30
+
a.close()
31
+
except:
32
+
print(colorama.Fore.RED+"Check if {} is a correct accessible path, and that I have perms to write to it..".format(options.captions)+colorama.Fore.RESET)
Serialize(ParseChanges(FetchChanges(DEPOT))) #Yeah, functions aren't really necessary for this, but meh
101
122
print(colorama.Fore.GREEN+"All went well it seems, Now you can simple add the log to the gource command line.\ngource.exe {}\n\no/".format(options.output)+colorama.Fore.RESET)
0 commit comments