Add comments to parser

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2022-01-05 13:20:35 -06:00
parent fc4c536ab6
commit 4f6fc88e40
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -1,8 +1,13 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
# Take path as single argument for now
nextflow_path = sys.argv[1] nextflow_path = sys.argv[1]
with open(nextflow_path) as nextflow_file: with open(nextflow_path) as nextflow_file:
# Split by lines
nextflow_lines = nextflow_file.readlines() nextflow_lines = nextflow_file.readlines()
# Print the first few lines
for i in range(1, 10): for i in range(1, 10):
print(nextflow_lines[i]) print(nextflow_lines[i])