INNER CODE UNIT · Python
fng_statistics_term_sorted
rfc-st/humble · humble.py:420
def fng_statistics_term_sorted(fng_incl, fng_term, fng_groups):
"""Print the service associated with the term provided.
In alphabetical order and terminate execution; related to `-f` option.
"""
for content in fng_groups:
print(f"\n [{STYLE[0]}{content}]")
content_lower = content.lower()
for line in fng_incl:
line_lower = line.lower()
if content_lower in line_lower and fng_term in line_lower:
print(f" {line[:line.find('(')].strip()}")
sys.exit(0)
def print_l10n_file(args, l10n_file, *, slice_ln=False):
"""Print the contents of a file in the specified language and exit."""
lang_es = args.lang == "es"