8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a627a6 commit 60a5d6fCopy full SHA for 60a5d6f
lab/parser.py
@@ -33,6 +33,10 @@ def main(self, args):
33
"-R", action="store_true", dest="recursive",
34
help="Recurse to find source files"
35
)
36
+ parser.add_option(
37
+ "-q", action="store_true", dest="quiet",
38
+ help="Suppress output"
39
+ )
40
parser.add_option(
41
"-s", action="store_true", dest="source",
42
help="Show analyzed source"
@@ -50,6 +54,8 @@ def main(self, args):
50
54
root = "."
51
55
for root, _, _ in os.walk(root):
52
56
for f in glob.glob(root + "/*.py"):
57
+ if not options.quiet:
58
+ print(f"Parsing {f}")
53
59
self.one_file(options, f)
60
elif not args:
61
parser.print_help()
@@ -121,7 +127,8 @@ def one_file(self, options, filename):
121
127
else:
122
128
a = ""
123
129
124
- print("%4d %s%s %s" % (lineno, "".join(marks), a, ltext))
130
131
+ print("%4d %s%s %s" % (lineno, "".join(marks), a, ltext))
125
132
126
133
def arc_ascii_art(self, arcs):
134
"""Draw arcs as ascii art.
0 commit comments