aboutsummaryrefslogtreecommitdiffstats
path: root/switches.py
diff options
context:
space:
mode:
authorHåkon Solbjørg <hlsolbjorg@gmail.com>2019-04-02 00:59:16 +0200
committerHåkon Solbjørg <hlsolbjorg@gmail.com>2019-04-02 19:56:23 +0200
commiteb5106409259144159c46cd4c2470621f4d6abe9 (patch)
tree4b166da9aa5264e4722d51d1c11a2e6d2e5c5132 /switches.py
parent1ceefd7d700caf18f2390b94aa81d9f0207a4d85 (diff)
feat: Make it possible to configure the labler from the CLI 🚂
Diffstat (limited to 'switches.py')
-rw-r--r--switches.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/switches.py b/switches.py
index ab444c6..a218489 100644
--- a/switches.py
+++ b/switches.py
@@ -37,7 +37,7 @@ def write_html_to_file(html, outfile="switch_labels.html"):
print("Wrote labels to '{}'.\nOpen the file in your browser and print it.".format(outfile))
-def make_switch_labels(switches):
+def make_switch_labels(switches, outfile="switch_labels.html"):
print("Generating labels for switches")
labels = generate_labels(switches)
- write_html_to_file(labels)
+ write_html_to_file(labels, outfile=outfile)