|
@ -1,8 +1,8 @@
|
1
|
1
|
#!/usr/bin/env python
|
2
|
2
|
|
3
|
3
|
import os
|
|
4
|
import sys
|
4
|
5
|
import subprocess
|
5
|
|
import argparse
|
6
|
6
|
import importlib
|
7
|
7
|
|
8
|
8
|
from utilities import isGit, isMercurial, isBazaar
|
|
@ -71,9 +71,11 @@ class CodeRepository:
|
71
|
71
|
return extensionExecuted
|
72
|
72
|
|
73
|
73
|
if __name__ == "__main__":
|
74
|
|
parser = argparse.ArgumentParser(description="")
|
75
|
|
parser.add_argument("commands", metavar="commands", nargs="+")
|
76
|
|
args = parser.parse_args()
|
|
74
|
args = sys.argv
|
|
75
|
|
|
76
|
if len(args) < 2:
|
|
77
|
print("Please supply a command.")
|
|
78
|
exit(3)
|
77
|
79
|
|
78
|
80
|
repo = CodeRepository()
|
79
|
|
repo.run(args.commands)
|
|
81
|
repo.run(args[1:])
|