From 12472c4e7424aed7ad6e33e8571e87a9b70369ec Mon Sep 17 00:00:00 2001 From: DaRubyMiner360 <55484201+DaRubyMiner360@users.noreply.github.com> Date: Mon, 18 Oct 2021 20:46:35 +0000 Subject: [PATCH] Updated dataCounter.py. --- dataCounter.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dataCounter.py b/dataCounter.py index 2320724..fdf4dab 100644 --- a/dataCounter.py +++ b/dataCounter.py @@ -3,17 +3,13 @@ import os rcmd = "( find ./ -name '*.%s' -print0 | xargs -0 cat ) | wc -l" -types = ['c', 'cpp', 'h', 'hpp', 'py', 'para', 'paracode', 'go', 'sh'] +types = ['c', 'cpp', 'h', 'hpp', 'py', 'para', 'paracode', 'sh'] if len(sys.argv) > 1: if sys.argv[1].lower() == "lines": rcmd = "( find ./ -name '*.%s' -print0 | xargs -0 cat ) | wc -l" elif sys.argv[1].lower() == "words": rcmd = "( find ./ -name '*.%s' -print0 | xargs -0 cat ) | wc -w" - elif sys.argv[1].lower() == "chars": - rcmd = "( find ./ -name '*.%s' -print0 | xargs -0 cat ) | wc -m" - elif sys.argv[1].lower() == "bytes": - rcmd = "( find ./ -name '*.%s' -print0 | xargs -0 cat ) | wc -c" elif sys.argv[1].lower() == "maxlinelength" or sys.argv[1].lower() == "max-line-length" or sys.argv[1].lower() == "mll": rcmd = "( find ./ -name '*.%s' -print0 | xargs -0 cat ) | wc -L" @@ -30,8 +26,6 @@ types = ['para', 'paracode'] elif sys.argv[2].lower() == "main": types = ['c', 'cpp', 'h', 'hpp', 'py', 'para', 'paracode'] - elif sys.argv[2].lower() == "go": - types = ['go'] elif sys.argv[2].lower() == "sh": types = ['sh']