import os
parser = argparse.ArgumentParser()
-parser.add_argument("input_path", help="Input folder that is traversed for OpenWrt JSON device files.")
-parser.add_argument('--link', required = True,
+parser.add_argument("input_path", nargs='?', help="Input folder that is traversed for OpenWrt JSON device files.")
+parser.add_argument('--link',
action="store", dest="link", default="",
help="Link to get the image from. May contain %%file, %%target, %%release and %%commit")
parser.add_argument('--include', nargs='+', default=[],
sys.stderr.write("Abort on {}\n Missing key {}\n".format(path, e))
exit(1)
-
# include JSON data from other files
for path in args.include:
with open(path, "r") as file: