From 29d17c958157cc451c928f0bb1ab768636f5d7ba Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 5 Jan 2022 13:17:47 -0600 Subject: [PATCH] Add file reading to parser Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- nfdocs-parser.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nfdocs-parser.py b/nfdocs-parser.py index a5f56d1..dea5b7c 100755 --- a/nfdocs-parser.py +++ b/nfdocs-parser.py @@ -1,5 +1,6 @@ #!/usr/bin/env python import sys -nextflow_file = sys.argv[1] -print(nextflow_file) +nextflow_path = sys.argv[1] +with open(nextflow_path) as nextflow_file: + print(nextflow_file)