File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ def run(args):
1414 counter_number += 1
1515 print (f"{ prefix } { line } " , end = "" )
1616
17-
1817
1918def main ():
2019 parser = argparse .ArgumentParser (
Original file line number Diff line number Diff line change 55def show_files (files , show_hidden ):
66 for file in files :
77 if show_hidden or not file .startswith ("." ):
8- print (file )
8+ print (file )
99
1010
1111parser = argparse .ArgumentParser (
@@ -23,4 +23,3 @@ def show_files(files, show_hidden):
2323
2424directory_path = args .path
2525listDir = os .listdir (directory_path )
26-
Original file line number Diff line number Diff line change 66)
77
88
9-
10-
119def read_file (file_path ):
1210 with open (file_path , "r" ) as file :
1311 return file .read ()
@@ -20,8 +18,6 @@ def count_text(text):
2018 return line_count , word_count , char_count
2119
2220
23-
24-
2521lineCounter = 0
2622wordCounter = 0
2723charCounter = 0
@@ -33,7 +29,6 @@ def count_text(text):
3329args = parser .parse_args ()
3430
3531
36-
3732for path in args .path :
3833 text = read_file (path )
3934 lines , words , chars = count_text (text )
@@ -59,4 +54,4 @@ def count_text(text):
5954 elif args .c :
6055 print (charCounter , "total" )
6156 else :
62- print (lineCounter , wordCounter , charCounter , "total" )
57+ print (lineCounter , wordCounter , charCounter , "total" )
You can’t perform that action at this time.
0 commit comments