|
@@ -5,7 +5,7 @@ import getdeveloperlib
|
|
|
import sys
|
|
|
|
|
|
|
|
|
-def parse_args():
|
|
|
+def __main__():
|
|
|
parser = argparse.ArgumentParser()
|
|
|
parser.add_argument('patches', metavar='P', type=argparse.FileType('r'), nargs='*',
|
|
|
help='list of patches (use - to read patches from stdin)')
|
|
@@ -23,11 +23,7 @@ def parse_args():
|
|
|
const=True, help='validate syntax of DEVELOPERS file')
|
|
|
parser.add_argument('-d', dest='filename', action='store', default=None,
|
|
|
help='override the default DEVELOPERS file (for debug)')
|
|
|
- return parser.parse_args()
|
|
|
-
|
|
|
-
|
|
|
-def __main__():
|
|
|
- args = parse_args()
|
|
|
+ args = parser.parse_args()
|
|
|
|
|
|
# Check that only one action is given
|
|
|
action = 0
|