yaml: add --output-filename flag

This helps for testing the script with different yaml files.

Change-Id: I9b29f1159fbf1f38c59b54e28ba7820b0864d68f
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/scripts/parse_led.py b/scripts/parse_led.py
index f6394dc..eac764c 100755
--- a/scripts/parse_led.py
+++ b/scripts/parse_led.py
@@ -107,6 +107,13 @@
         "-f", "--filename", default="led.yaml", help="Input File Name"
     )
     parser.add_argument(
+        "-l",
+        "--output-filename",
+        dest="outputfilename",
+        default="led-gen.hpp",
+        help="Output File Name",
+    )
+    parser.add_argument(
         "-i",
         "--input-dir",
         dest="inputdir",
@@ -136,5 +143,5 @@
     with open(yaml_file, "r") as f:
         ifile = yaml.safe_load(f)
 
-    with open(os.path.join(args.outputdir, "led-gen.hpp"), "w") as ofile:
+    with open(os.path.join(args.outputdir, args.outputfilename), "w") as ofile:
         generate_file(ifile, ofile)