Merge "build_image: Support common args"
This commit is contained in:
@@ -814,16 +814,18 @@ def GlobalDictFromImageProp(image_prop, mount_point):
|
|||||||
|
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
if len(argv) != 4:
|
args = common.ParseOptions(argv, __doc__)
|
||||||
|
|
||||||
|
if len(args) != 4:
|
||||||
print(__doc__)
|
print(__doc__)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
common.InitLogging()
|
common.InitLogging()
|
||||||
|
|
||||||
in_dir = argv[0]
|
in_dir = args[0]
|
||||||
glob_dict_file = argv[1]
|
glob_dict_file = args[1]
|
||||||
out_file = argv[2]
|
out_file = args[2]
|
||||||
target_out = argv[3]
|
target_out = args[3]
|
||||||
|
|
||||||
glob_dict = LoadGlobalDict(glob_dict_file)
|
glob_dict = LoadGlobalDict(glob_dict_file)
|
||||||
if "mount_point" in glob_dict:
|
if "mount_point" in glob_dict:
|
||||||
|
Reference in New Issue
Block a user